ShaderInput
from panda3d.core import ShaderInput
- class ShaderInput
Bases:
DTOOL_SUPER_BASE
This is a small container class that can hold any one of the value types that can be passed as input to a shader.
Inheritance diagram
- ALayered = 4
- ARead = 1
- AWrite = 2
- A_layered = 4
- A_read = 1
- A_write = 2
- MBuffer = 8
- MInvalid = 0
- MNodepath = 2
- MNumeric = 4
- MParam = 6
- MTexture = 1
- MTextureImage = 7
- MTextureSampler = 5
- MVector = 3
- M_buffer = 8
- M_invalid = 0
- M_nodepath = 2
- M_numeric = 4
- M_param = 6
- M_texture = 1
- M_texture_image = 7
- M_texture_sampler = 5
- M_vector = 3
- __init__(*args, **kwargs)
- getBlank()
C++ Interface: get_blank()
- /**
Returns a static ShaderInput object with name NULL, priority zero, type
INVALID, and all value-fields cleared.
*/
- getNodepath()
C++ Interface: get_nodepath(ShaderInput self)
- /**
Warning: no error checking is done. This will crash if get_value_type()
is not M_nodepath.
*/
- getSampler()
C++ Interface: get_sampler(ShaderInput self)
- /**
Warning: no error checking is done.
*/
- get_blank()
C++ Interface: get_blank()
- /**
Returns a static ShaderInput object with name NULL, priority zero, type
INVALID, and all value-fields cleared.
*/
- get_nodepath()
C++ Interface: get_nodepath(ShaderInput self)
- /**
Warning: no error checking is done. This will crash if get_value_type()
is not M_nodepath.
*/