mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-06-26 15:13:19 +00:00
ray:: fixing the vectors (commented off)
This commit is contained in:
parent
effe35dd34
commit
97d4e45996
|
@ -535,6 +535,13 @@ void enable_raycaster() {
|
||||||
}
|
}
|
||||||
else fmain +=
|
else fmain +=
|
||||||
"position = position + tangent * dist;\n";
|
"position = position + tangent * dist;\n";
|
||||||
|
|
||||||
|
#if CAP_FIX_RAYCAST
|
||||||
|
if(hyperbolic) fmain +=
|
||||||
|
"position /= sqrt(position.w*position.w - dot(position.xyz, position.xyz));\n"
|
||||||
|
"tangent -= dot(vec4(-position.xyz, position.w), tangent) * position;\n"
|
||||||
|
"tangent /= sqrt(dot(tangent.xyz, tangent.xyz) - tangent.w*tangent.w);\n";
|
||||||
|
#endif
|
||||||
|
|
||||||
if(hyperbolic && binarytiling) {
|
if(hyperbolic && binarytiling) {
|
||||||
fmain +=
|
fmain +=
|
||||||
|
|
Loading…
Reference in New Issue
Block a user