I am trying to load 3DTiles voxels, and store a field ‘a’ for each voxel cell. How can I get the property value of ‘a’ in custom shader?
Thank you for your assistance!
const customShader = new Cesium.CustomShader({
fragmentShaderText:
`void fragmentMain(FragmentInput fsInput, inout czm_modelMaterial material)
{
material.diffuse = vec3(0.5,0.5,0.5);
float aValue = fsInput.voxel.a; // Here is wrong! I want to get the value of property 'a'
material.alpha = 0.5;
}`,
});