Unit CastleShaders

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Shaders types. Independent from OpenGL and X3D.

Overview

Types

TShaderType = (...);

Constants

ShaderTypeName: array [TShaderType] of string = ( 'Vertex', 'Geometry', 'Fragment' );
ShaderTypeNameX3D: array [TShaderType] of string = ( 'VERTEX', 'GEOMETRY', 'FRAGMENT' );

Description

Types

TShaderType = (...);

If defined, the compiled code will have embedded all the variations of basic fonts for the X3D Text node (see [http://castle-engine.sourceforge.net/x3d_implementation_text.php]). This is comfortable (the FontStyle font works, with 3 * 4 font variations, out of the box), but it increases your exe size — possibly without a reason, if you don't use FontStyle X3D node.

Undefine this to conserve around 0.7 MB in exe size. All the Text X3D nodes will use standard sans non-bold, non-italic font.

Values
  • stVertex:  
  • stGeometry:  
  • stFragment:  

Constants

ShaderTypeName: array [TShaderType] of string = ( 'Vertex', 'Geometry', 'Fragment' );
 
ShaderTypeNameX3D: array [TShaderType] of string = ( 'VERTEX', 'GEOMETRY', 'FRAGMENT' );
 

Generated by PasDoc 0.14.0.