Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


camera

This is an old revision of the document!


Camera

Camera.SetReplacementShader

SetReplacementShader will not render objects if their original materials don't contain any properties required by the replacement shader. For example, if your replacement shader uses _MainTex, and there is an object in the scene that doesn't have _MainTex, it won't be rendered at all.

Shaders can be replaced in the SceneView using SceneView.SetSceneViewShaderReplace.

camera.1623554697.txt.gz · Last modified: 2021/06/13 03:24 by uninomiconadmin