reckfellENGINE

ShaderInclude

Shared source fragment for shader #include.

On this page
class ShaderIncludeReckfellSharpInherits Resource

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
# ShaderInclude
C#
public ShaderInclude();

Creates an empty include-source resource. Assign Code or load a .reckfellshaderinc file; this is not a standalone ShaderMaterial.

Properties1

CodeProperty
# Code
C#
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
# GetCode
C#
public string GetCode();

Returns original include text, not final source for the including shader. Parent macros apply during subsequent #include processing.

Returns string

Original ShaderInclude resource text.

SetCodevoid
# SetCode
C#
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.

Parameters
NameTypeDefault
codestring—
code

Source text of the included shading-language fragment.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.