Advertisement

Trouble with glsl pseudo code

Started by February 05, 2019 12:39 PM
6 comments, last by CodedRack 6 years ago

In need of help writing out this glsl pseudo code into actual compilable code. 1021787331_glslpseudocode.thumb.png.f944ecbad6ba08218e8ac4900a0c1f2d.png

pseudo code.png

Looks like good code.

Advertisement

Yeah only if you understand it. Especially writing this

 

[tstart,tend] <= computeRayBoxIntersection 

I totally don't know.

Well, what could that mean?

In case a 3D ray collides with a 3D AABB (box) 'normally', it enters the box at 3D point "t_start" and exits at 3D point "t_end".

Implementation of computeRayBoxIntersection is an exercise for the reader -- I guess year 1 or 2 of secondary grammar schools (pupil ages 15-16) and for us older ones, 30 minutes with paper and pencil?

@pcmaster appreciated.

No problem :) ... aaaalso, I didn't want to sound like a dick, sorry if I did.

Advertisement

don't worry bruh. no offence taken. ?

This topic is closed to new replies.

Advertisement