Custom shader render black color

Maybe you only have to change
material.emission = fragColor.rgb;
to
material.diffuse = fragColor.rgb;
but maybe I’m missing some context.

1 Like