ScriptReference/RenderTexture #234
Replies: 2 comments
-
|
Be careful to use one of the constructors that takes parameters (i.e. do not use the parameterless constructor with object initializers) because there is a behavioural difference between the parameterless and parametered constructors when it comes to face flipping due to an internal flag that gets set when the parametered constructor is called. If you encounter face flipping issues it may well be because you're calling the wrong constructor. |
Beta Was this translation helpful? Give feedback.
-
|
Comment by Keep in mind that when you "new" a RenderTexture, on some platforms it does not clear out the memory that the texture uses, which can lead to weird artifacts. In order to clear it out, you need to use GL.Clear. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/RenderTexture
https://docs.unity3d.com/ScriptReference/RenderTexture.html
Beta Was this translation helpful? Give feedback.
All reactions