seems like a real cool feature after I saw megascience's lsd one
I opened the code and it looks like you edit files in the shader directory, mostly the renderVsm_vert.glsl one which contains:
void main()
{
// Bricks always in world space.
worldPos = (obj2World * vec4(gl_Vertex.xyz, 1.0f)).xyz;
worldNormal = ((obj2World * vec4(gl_Normal.xyz, 0.0f)).xyz);
if(length(gl_Normal.xyz) < 1.1f)
worldNormal.xyz = normalize(worldNormal.xyz);
// Do some camera delta math.
viewDelta.xyz = worldPos - camPos;
viewDelta.w = length(viewDelta.xyz);
viewDelta.xyz = -normalize(viewDelta.xyz);
// Fog can be done per-vertex.
fogCoords.x = clamp((fogConsts.y - viewDelta.w) * fogConsts.x, 0.0f, 1.0f);
fogCoords.y = clamp((worldPos.z - fogConsts.z) * fogConsts.w, 0.0f, 1.0f);
// Project the brick pos and normal.
vPos = world2Cam * vec4(worldPos, 1.0f);
gl_Position = gl_ProjectionMatrix * vPos;
normal = worldNormal;
// Pass color through.
gl_FrontColor = gl_Color;
// Pass texcoords through.
texCoord = gl_MultiTexCoord0.st;
}
But if you're modifying one file, what if you have two shaders?
What am I missing?
Is there a guide somewhere I missed? (not stickied here, I know that)