Hello,
I got some weird thing going on with Shader nodes
I was modifying code for the frag shader when suddently, new modifications did not appear in the game
and now if I check the shader tab , the frag shader is at an old version and wont be replaced by my new code
been digging this for hours, I just dont get what’s wrong
any idea ? some cache files I could delete or what ?
thanks
MaterialDef Simple {
MaterialParameters {
Vector3 Time
Vector3 DiffuseMapScale
Color Color
Float MaxHeight
}
Technique {
// LightMode MultiPass
Defines {
SIMPLEX_GRAY : SIMPLEX_GRAY
}
WorldParameters {
WorldViewProjectionMatrix
CameraPosition
NormalMatrix
LightPosition
LightColor
AmbientLightColor
}
VertexShaderNodes {
ShaderNode ZoneVert
{
Definition : ZoneVert : Shaders/Zone/ZoneVert.j3sn
InputMappings
{
worldViewProjectionMatrix = WorldParam.WorldViewProjectionMatrix
modelPosition = Global.position.xyz
}
OutputMappings
{
Global.position = projPosition
}
}
}
FragmentShaderNodes {
ShaderNode Simplex3Frag {
Definition : Simplex3Frag : Shaders/Simplex/Simplex3Frag.j3sn
InputMappings
{
texCoord=ZoneVert.modelPosition.xyz
time = MatParam.Time
scale = MatParam.DiffuseMapScale
}
}
ShaderNode ZoneFrag {
Definition : ZoneFrag : Shaders/Zone/ZoneFrag.j3sn
InputMappings
{
texCoord=Global.position.xyz
maxHeight=MatParam.MaxHeight
simplexColor=Simplex3Frag.simplexColor
color = MatParam.Color
time = MatParam.Time
}
OutputMappings {
Global.color = outColor
}
}
}
}
}
edit : I’ll try uninstall/reinstall JME… who knows