HDK
|
#include <simpleLightingShader.h>
Additional Inherited Members | |
Public Types inherited from HdStShaderCode | |
typedef size_t | ID |
using | NamedTextureHandleVector = std::vector< NamedTextureHandle > |
Static Public Member Functions inherited from HdStShaderCode | |
static HDST_API ID | ComputeHash (HdStShaderCodeSharedPtrVector const &shaders) |
Returns the combined hash values of multiple shaders. More... | |
A shader that supports simple lighting functionality.
Definition at line 57 of file simpleLightingShader.h.
HDST_API HdStSimpleLightingShader::HdStSimpleLightingShader | ( | ) |
|
override |
|
overridevirtual |
Add custom bindings (used by codegen)
Implements HdStShaderCode.
HDST_API void HdStSimpleLightingShader::AddBufferBinding | ( | HdStBindingRequest const & | req | ) |
Add a custom binding request for use when this shader executes.
|
overridevirtual |
Adds computations to create the dome light textures that are pre-calculated from the environment map texture.
Reimplemented from HdStShaderCode.
HDST_API void HdStSimpleLightingShader::AllocateTextureHandles | ( | HdRenderIndex const & | renderIndex | ) |
Allocates texture handles (texture loading happens later during commit) needed for lights.
Call after lighting context has been set or updated in Sync-phase.
|
overridevirtual |
Binds shader-specific resources to program XXX: this interface is meant to be used for bridging the GlfSimpleLightingContext mechanism, and not for generic use-cases.
Implements HdStShaderCode.
Clear all custom bindings associated with this shader.
HdShader overrides.
Implements HdStShaderCode.
|
inline |
The dome light environment map used as source for the other dome light textures.
Definition at line 122 of file simpleLightingShader.h.
|
inline |
Definition at line 107 of file simpleLightingShader.h.
|
overridevirtual |
The textures computed from the dome light environment map that the shader needs to bind for the dome light shading.
Reimplemented from HdStShaderCode.
|
overridevirtual |
HdStShaderCode overrides.
Reimplemented from HdStShaderCode.
|
inline |
Definition at line 137 of file simpleLightingShader.h.
|
overridevirtual |
Returns the shader source provided by this shader for shaderStageKey
Implements HdStShaderCode.
HDST_API const HdStTextureHandleSharedPtr& HdStSimpleLightingShader::GetTextureHandle | ( | const TfToken & | name | ) | const |
Get one of the textures that need to be computed from the dome light environment map.
Remove name
from custom binding.
|
overridevirtual |
HdStLightingShader overrides.
Implements HdStLightingShader.
|
overridevirtual |
Unbinds shader-specific resources.
Implements HdStShaderCode.