Go to bottom

Rubber Vector

category: code [glöplog]
That´s not "per scanline" ;)
In Raymarching "per scanline" would be rotating using fragCoord.y (UV.y)
You are rotating in object-space using ray-positions y-coordinate! While object-space is the same as world-space in your case, as you didn´t translate or manipulate your object in other ways before rotating it.
Sorry, didn´t want to let you look dumb or anything, but i guess this could confuse people if not clarified!
and just as a bonus information about different spaces in graphics:
fragCoord (UV) is screen-space
No worries, thank you for the correction, and explanation. I have very little experience with shadertoy, and raymarching. So basicly i am dumb on the subject and anything helps me to gain a better understanding.
added on the 2018-05-20 09:49:46 by SCA SCA
I adapted the code to now use uv.y
Would it be more correct "per scanline" now?
added on the 2018-05-20 09:59:56 by SCA SCA
yes, if you want to let it look "oldskoolish" for sure!
but nowadays i would go with the object-space-rotation you had before...looks better in my eyes! also it´s a bit hard to rotate screen-space for one object only! ;)


Go to top