ShaderInclude
Shared source fragment for shader #include.
ShaderInclude holds .reckfellshaderinc source and its dependencies. It is included in the parent Shader macro context; Code changes notify dependent shaders. An include alone is neither a material nor a raw GLSL compute program.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
ShaderIncludeConstructor
public ShaderInclude();Creates an empty include-source resource. Assign Code or load a .reckfellshaderinc file; this is not a standalone ShaderMaterial.
Properties1
CodeProperty
public string Code { get; set; }Original include-file text, before directive expansion in the including shader context. Changes notify dependent shaders; the disk file is not automatically saved.
Methods2
GetCodestring
public string GetCode();Returns original include text, not final source for the including shader. Parent macros apply during subsequent #include processing.
stringOriginal ShaderInclude resource text.
SetCodevoid
public void SetCode(string code);Replaces include source, updates its dependencies and notifies shaders that use it. An in-memory change does not save the file.
| Name | Type | Default |
|---|---|---|
code | string | — |
codeSource text of the included shading-language fragment.