I’m trying to fix an older project but I really have no experience with shaders/chunks etc
how can I update this piece of code?
dDiffuseLight = vec3(0.0);
#ifdef CLEARCOAT
gl_FragColor.rgb = combineColorCC();
#else
gl_FragColor.rgb = combineColor();
#endif
gl_FragColor.rgb += getEmission();
gl_FragColor.rgb = addFog(gl_FragColor.rgb);
#ifndef HDR
gl_FragColor.rgb = toneMap(gl_FragColor.rgb);
gl_FragColor.rgb = gammaCorrectOutput(gl_FragColor.rgb);
#endif
or maybe i can somehow set the chunk API version to use without updating?