Changes between Version 36 and Version 37 of Coding_Conventions
- Timestamp:
- May 8, 2018, 9:49:55 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Coding_Conventions
v36 v37 404 404 405 405 * Indent using whatever the similar existing XML files use. (Usually two spaces; sometimes four spaces, or tabs, etc.) 406 407 == GLSL == 408 * Use the same basic formatting as described above for C++. 409 * File extensions for shaders: 410 * .fs - fragment shader 411 * .vs - vertex shader 412 * .gs - geometry shader 413 * .cs - compute shader 414 * All GLSL files should start with right [[https://www.khronos.org/opengl/wiki/Core_Language_(GLSL)#Version|version]]. 415 {{{ 416 #!cpp 417 #version 120 418 }}} 419 * Prefer to use own uniforms instead of built-in