Not logged inOpenClonk Forum
Up Topic [Particles] Fire

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 Clonk-Karl
So the error message is

ERROR: 0:74: '=' :  cannot convert from '3-component vector of float' to '2-component vector of float'

I think it relates to this line:

vec2 lightCoord = lightTransform * vec3(gl_FragCoord.xy, 1.0);

But it is not clear to me why it does not work. My Intel driver works with it. Can you try to replace this line by

vec2 lightCoord = (lightTransform * vec3(gl_FragCoord.xy, 1.0)).xy;

in Graphics.ocg/ObjectLightShader.glsl? Also, you'll have to replace

float ambient = texture2D(ambientTex, ambientTransform * vec3(gl_FragCoord.xy, 1.0)).r * ambientBrightness;

by

float ambient = texture2D(ambientTex, (ambientTransform * vec3(gl_FragCoord.xy, 1.0)).xy).r * ambientBrightness;

in Graphics.ocg/AmbientShader.glsl.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill