Skip to content

Commit

Permalink
let's make it even bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Feb 16, 2025
1 parent c911d93 commit 607eedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shaders/matterjet.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ void main() {

vec3 rayDir = normalize(pixelWorldPosition - camera_position);// normalized direction of the ray

float scaling_factor = object_radius * 1000.0;
float scaling_factor = object_radius * 10000.0;

// move in object's local space to simplify the calculations
vec3 rayOriginLocalSpace = mat3(inverseRotation) * (camera_position - object_position) / scaling_factor;
vec3 rayDirLocalSpace = mat3(inverseRotation) * rayDir;

float coneTheta = 0.2;
float coneHeight = 100000.0 * object_radius / scaling_factor;
float coneHeight = 1000000.0 * object_radius / scaling_factor;

vec3 color = screenColor.rgb;
float finalAlpha = screenColor.a;
Expand Down

0 comments on commit 607eedf

Please sign in to comment.