# CustomShaderMode

engine/Source/Scene/Model/CustomShaderMode.js 9
An enum describing how the `CustomShader` will be added to the fragment shader. This determines how the shader interacts with the material.

##### Properties:

Name | Type | Description
--- | --- | ---
`MODIFY_MATERIAL` | string | The custom shader will be used to modify the results of the material stage before lighting is applied.
`REPLACE_MATERIAL` | string | The custom shader will be used instead of the material stage. This is a hint to optimize out the material processing code.

##### Experimental

This feature is using part of the 3D Tiles spec that is not final and is subject to change without Cesium's standard deprecation policy.

### Members

#### static constant Cesium.CustomShaderMode.MODIFY_MATERIAL : string
engine/Source/Scene/Model/CustomShaderMode.js 17

The custom shader will be used to modify the results of the material stage before lighting is applied.

Default Value: `MODIFY_MATERIAL`

#### static constant Cesium.CustomShaderMode.REPLACE_MATERIAL : string
engine/Source/Scene/Model/CustomShaderMode.js 25

The custom shader will be used instead of the material stage. This is a hint to optimize out the material processing code.

Default Value: `REPLACE_MATERIAL`

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.