Hello all, I am studying GL and Graphics for use to script.
But , out badly…
GL → that are 1 : 1 mappings of the corresponding API functions so checking the OpenGL docs might give you an idea.
and graphics functions do exactly what they say: Draw a mesh (that otherwise is not part of the scene ie not on a renderer component somewhere in the scene), draw a texture (otherwise not on a material or gui in the scene) or copy texture to texture (blit)
Thank you;)
Could you cite some examples of the Graphics?:shock:
The DrawMesh functions can be useful in cases where you have lots of similar objects that have different positions and material properties. Rather than have a separate GameObject for each one, you can just draw the mesh lots of times in the scene. This is often more efficient than managing a large number of GameObjects.
DrawTexture simply draws a texture directly to the screen (it is similar to GUI.DrawTexture but doesn’t have any GUI-specific features). The Blit functions copy a texture to a RenderTexture. This is mostly used in the image effect scripts but you might also use it when creating an in-game monitor screen, say.