From aebd601a9399433146933510dcfdb04abe7e03d5 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Sun, 2 Jun 2024 11:10:26 +0800 Subject: More float operands for float operations This is so that it doesn't throw a compilation error at runtime for not defining consistently with float values, which would be uncastable on some certain other implementation. --- indra/newview/app_settings/shaders/class1/deferred/aoUtil.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/app_settings/shaders/class1/deferred/aoUtil.glsl') diff --git a/indra/newview/app_settings/shaders/class1/deferred/aoUtil.glsl b/indra/newview/app_settings/shaders/class1/deferred/aoUtil.glsl index 49470f0e39..1c394e1de4 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/aoUtil.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/aoUtil.glsl @@ -79,10 +79,10 @@ float calcAmbientOcclusion(vec4 pos, vec3 norm, vec2 pos_screen) { float ret = 1.0; vec3 pos_world = pos.xyz; - vec2 noise_reflect = texture(noiseMap, pos_screen.xy * (screen_res / 128)).xy; + vec2 noise_reflect = texture(noiseMap, pos_screen.xy * (screen_res / 128.0)).xy; float angle_hidden = 0.0; - float points = 0; + float points = 0.0; float scale = min(ssao_radius / -pos_world.z, ssao_max_radius); -- cgit v1.2.3