cesiumlab / cesiumlab/XbsjEarthUI
CustomPrimitive不显示背面
- Dominant language
- JavaScript
- Stars
- 734
- Forks
- 193
- PR merge metrics
- No merged PRs in 30d
Description
为什么CustomPrimitive绘制出来的面只能从正面看,背面就消失了,我用CustomPrimitive绘制一个立体风车,从正面看,有6个面24条线,从背面看,只有24条线没有面,请问一下需要怎么处理才能各个角度都看得到


---
需要设置以下renderState
xxx.renderState = XE.Obj.CustomPrimitive.getRenderState(false, false);
getRenderState的第二个参数,为true时,不显示背面,为false时,双面都显示

Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the CustomPrimitive renderState setup and the getRenderState entry point named in the issue. Verify the render-state configuration for the primitive and confirm that the windmill faces remain visible when viewed from both front and back.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100