Header menu logo Nu

Shader Module

Functions and values

Function or value Description

Shader.CreateShaderFromFilePath shaderFilePath

Full Usage: Shader.CreateShaderFromFilePath shaderFilePath

Parameters:
    shaderFilePath : string

Returns: uint32

Create a shader from a single file with both a '#shader vertex' section and a '#shader fragment' section.

shaderFilePath : string
Returns: uint32

Shader.CreateShaderFromFilePaths (vertexFilePath, fragmentFilePath)

Full Usage: Shader.CreateShaderFromFilePaths (vertexFilePath, fragmentFilePath)

Parameters:
    vertexFilePath : string
    fragmentFilePath : string

Returns: uint32

Create a shader from a vertex file and a fragment file.

vertexFilePath : string
fragmentFilePath : string
Returns: uint32

Shader.CreateShaderFromStreams (vertexStream, fragmentStream)

Full Usage: Shader.CreateShaderFromStreams (vertexStream, fragmentStream)

Parameters:
Returns: uint32

Create a shader from a vertex stream and a fragment stream.

vertexStream : StreamReader
fragmentStream : StreamReader
Returns: uint32

Shader.CreateShaderFromStrs (vertexShaderStr, fragmentShaderStr)

Full Usage: Shader.CreateShaderFromStrs (vertexShaderStr, fragmentShaderStr)

Parameters:
    vertexShaderStr : string
    fragmentShaderStr : string

Returns: uint32

Create a shader from vertex and fragment code strings.

vertexShaderStr : string
fragmentShaderStr : string
Returns: uint32

Type something to start searching.