Not logged inOpenClonk Forum
Up Topic Colored lights

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Isilkor
Can confirm, here's the fix:

diff --git a/planet/Graphics.ocg/LightShader.glsl b/planet/Graphics.ocg/LightShader.glsl
index dc808f7..61189f3 100644
--- a/planet/Graphics.ocg/LightShader.glsl
+++ b/planet/Graphics.ocg/LightShader.glsl
@@ -28,7 +28,7 @@ slice(texture+5)
   vec3  lightDir = extend_normal(vec2(1.0, 1.0) - lightPx.yz * 3.0);
  
   // Query light color texture (part of the light texture)
-  vec2 lightColorCoord = lightCoord;
+  vec2 lightColorCoord = lightCoord.st;
        lightColorCoord.t = lightCoord.t - 0.5; // offset for the color texture
  
   vec4 lightColor = texture2D(lightTex, lightColorCoord.st);

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill