ka_sc
June 5, 2023, 6:13am
1
hi,
I must be misunderstanding custom shaders, even with material.alpha = 0 mine is fully opaque.
Could somebody help with that? Here is my sandcastle
const customShader = new Cesium.CustomShader({
isTranslucent: true,
translucencyMode: Cesium.CustomShaderTranslucencyMode?.TRANSLUCENT,
mode: Cesium.CustomShaderMode.REPLACE_MATERIAL,
ka_sc
June 6, 2023, 1:38am
2
Any examples i could look at? I dont just want the color to be transparent the real thing has a fresnel Cesium Sandcastle
Hi @ka_sc ,
Unfortunately, customShader
is not a property of Entity
. It can only be applied to models and 3D tilesets.
Perhaps you can achieve the effect by moving to a glTF model, or applying the fabric schema to the primitive?
ka_sc
June 12, 2023, 11:40pm
4
hi,
Thanks, in real life i have a gltf model and i cannot make transparency work. I will update my sandcastle to use one
ka_sc
June 13, 2023, 1:19am
5
mix is probably what i am looking for
ka_sc
June 13, 2023, 12:43pm
6
I am actually looking to blend gltf vertex color (rather than model color )and a custom shader,
Will CustomShaderMode.MODIFY_MATERIAL do that? Also getting Primitive is missing attribute v_normalEC, disabling custom fragment shader.