問題タブ [metal-performance-shaders]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
metal - 金属深さクランプ
遠点と近点の間のクランプを無効にしたい。エッジへのクランプを無効にするようにサンプラーを変更することはすでに試みられています (constexpr sampler s(address::clamp_to_zero)
エッジに対しては期待どおりに機能しましたが、ほとんどの遠点と近点の間の座標はまだクランプされています。
現在の望ましくない結果: https://gph.is/g/ZyWjkzW
期待される結果: https://i.imgur.com/GjvwgyU.png
も試しencoder.setDepthClipMode(.clip)
ましたが、うまくいきませんでした。
コードの一部: