Improve compatibility with GLES back-end

This commit is contained in:
Edwin Jakobs
2024-03-10 18:39:21 +01:00
parent b9b1b95ca0
commit e3f5e07b86
62 changed files with 182 additions and 195 deletions

View File

@@ -295,7 +295,7 @@ void main() {
float angle = abs(dot(reflected, viewNormal));
float frontalFade = clamp(-reflected.z,0, 1);
float frontalFade = clamp(-reflected.z,0.0, 1.0);
if ( true ) {
bool hit = traceScreenSpaceRay1(
viewPos,

View File

@@ -1,12 +1,10 @@
#version 330
uniform usampler2D tex0;
uniform highp usampler2D tex0;
in vec2 v_texCoord0;
out vec4 o_output;
void main() {
ivec2 ts = textureSize(tex0, 0);
ivec2 pixel = ivec2(v_texCoord0 * ts);
ivec2 pixel = ivec2(v_texCoord0 * vec2(ts));
ivec2 c = pixel;
ivec2 n = c + ivec2(0, -1);