GLSLSource

Overview

GLSLSource is a class in Aspose.3D FOSS for .NET. Inherits from: ShaderSource.

The source code of shaders in GLSL

This class provides 2 methods for working with GLSLSource objects in .NET programs. Available methods include: DefineInclude, GLSLSource. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: ComputeShader, FragmentShader, GeometryShader, VertexShader.

Properties

NameTypeAccessDescription
ComputeShaderstringRead/WriteGets or sets the source code of the compute shader.
GeometryShaderstringRead/WriteGets or sets the source code of the geometry shader.
VertexShaderstringRead/WriteGets or sets the source code of the vertex shader
FragmentShaderstringRead/WriteGets or sets the source code of the fragment shader.

Methods

SignatureDescription
GLSLSource()GLSL source
DefineInclude(fileName: string, content: string)Not implemented in the FOSS edition — throws at runtime. Define virtual file for #include in GLSL source code

See Also

 English