Extends BBMOD_Shader
constructor
new BBMOD_BaseShader(_shader, _vertexFormat)
Base class for BBMOD shaders.
Name | Type | Description |
---|---|---|
_shader | Resource.GMShader |
The shader resource. |
_vertexFormat | Struct.BBMOD_VertexFormat |
The vertex format required by the shader. |
Name | Description |
---|---|
set_alpha_test | Sets the bbmod_AlphaTest uniform. |
set_batch_data | Sets the bbmod_BatchData uniform. |
set_bones | Sets the bbmod_Bones uniform. |
set_cam_pos | Sets a fragment shader uniform bbmod_CamPos to the given position. |
set_exposure | Sets the bbmod_Exposure uniform. |
set_instance_id | Sets the bbmod_InstanceID uniform. |
set_material | Sets shader uniforms using values from the material. |
set_texture_offset | Sets the bbmod_TextureOffset uniform to the given offset. |
set_texture_scale | Sets the bbmod_TextureScale uniform to the given scale. |
Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.