mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
ray:: fix matrix in h2xe
This commit is contained in:
parent
77d16fdc3d
commit
bcbe154b3a
@ -981,6 +981,11 @@ void enable_raycaster() {
|
|||||||
"tangent -= dot(vec4(-position.xyz, position.w), tangent) * position;\n"
|
"tangent -= dot(vec4(-position.xyz, position.w), tangent) * position;\n"
|
||||||
"tangent /= sqrt(dot(tangent.xyz, tangent.xyz) - tangent.w*tangent.w);\n";
|
"tangent /= sqrt(dot(tangent.xyz, tangent.xyz) - tangent.w*tangent.w);\n";
|
||||||
|
|
||||||
|
if(in_h2xe()) fmain +=
|
||||||
|
"position /= sqrt(position.z*position.z - dot(position.xy, position.xy));\n"
|
||||||
|
"tangent -= dot(vec3(-position.xy, position.z), tangent.xyz) * position;\n"
|
||||||
|
"tangent /= sqrt(dot(tangent.xy, tangent.xy) - tangent.z*tangent.z);\n";
|
||||||
|
|
||||||
if(hyperbolic && bt::in()) {
|
if(hyperbolic && bt::in()) {
|
||||||
fmain +=
|
fmain +=
|
||||||
"if(which == 20) {\n"
|
"if(which == 20) {\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user