- Edited
I'm working on a game with optional PS1-style graphics, and I'm applying this shader to a ShaderMaterial on all my meshes. Because the PS1 style is meant to be optional, I need an easy way to disable the shader while still being able to configure the parameters for each mesh, as I may want some meshes to jitter more than others, use a different color, albedo texture, etc.. I was thinking about using a SpatialMaterial or basic ShaderMaterial with configurable parameters for color and/or texture as a first pass, and then applying the vertex-jitter and affine texture mapping effects as a second pass using a separate shader, which would include an "enabled" uniform, but I'm not sure if that will affect performance at all. Edit: I'm also not sure if I would even be able to globally affect that "enabled" uniform without every mesh's node setting it via script. How should I go about handling this? Thank you in advance for your help.