I am looking to make a shader which fades out at the edge of the object.
Had a look at the plasma example and this changes emissive with material.chunks.emissiveConstPS = fs;
vec3 getEmission() ()
How would I do the same for the Diffuse Colour, so I can fade the Alpha with a dotproduct at the edge?
What does material.chunks.emissiveConstPS have to be for diffuse also does getEmission() needs to be renamed
Any idea would be welcome