![]() If the platform doesn’t support a specific version of OpenGL, Unity will fallback to a supported version -force-glcoreXY: XY can be 32, 33, 40, 41, 42, 43, 44 or 45 each number representing a specific version of OpenGL.With this argument, Unity will detect all the features the platform support to run with the best OpenGL version possible and all available OpenGL extensions -force-glcore: To use the new OpenGL back-end.-force-opengl: To use the legacy OpenGL back-end.It’s possible to start the editor or the player with OpenGL using the command line arguments: ![]() OpenGL core profile command line arguments Like the ES 3 target, this also scales up to contain all desktop GL versions, where basic shaders will support GL 2.x while shaders requiring SM5.0 features require OpenGL 4.2+. #pragma only_renderers glcore: Only compile for the desktop GL.#pragma target 5.0 // OpenGL ES 3.1 + Android Extension Pack, desktop OpenGL >= 4.2, DX Shader Model 5.0įor including and excluding shader platforms from using a specific shaders, the following #pragma only_renderers / exclude_renderers targets can be used:.#pragma target gl4.1 // Desktop OpenGL 4.1, SM 4.0 + tessellation to match MacOSX 10.9 capabilities.#pragma target 4.0 // OpenGL ES 3.1, desktop OpenGL 3.x, DX Shader Model 4.0.When using the existing #pragma targets, they map to following GL levels: Indirect draw (Graphics.DrawProcedural and Graphics.DrawProceduralIndirect). ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |