Add new "unclamped" behavior to DirectionalMap
@zychen8 已经在做这个了。
开始于 2026年9月21日。
评估
这个 Issue 还没有评估数据。
描述
Currently DirectionalMap has two behaviors for how it determines the angle: clamped or absolute (see the "clamping_behavior" enum attribute).
float cosTheta = dot(N, prime);
if (me->get(attrClamping) == ispc::DIRECTIONAL_BEHAVIOR_ABS) {
cosTheta = scene_rdl2::math::abs(cosTheta);
}
cosTheta = saturate(cosTheta);
Adding a third "unclamped" behavior would make this shader more flexible. The new behavior should remap the full [-1,1] range of cosTheta to [0,1] rather than simply clamping it with saturate().
- 主要语言
- CMake
- 星标
- 4.7k
- 派生
- 321
- 平均合并
- 13 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenMoonRay/openmoonray 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
OpenMoonRay/openmoonray#332 ·
-
难度 2/5 1-3 小时 新手友好度 64/100
OpenMoonRay/openmoonray#320 ·
-
难度 2/5 1-3 小时 新手友好度 64/100
OpenMoonRay/openmoonray#233 ·
-
难度 3/5 1-2 天 新手友好度 57/100
OpenMoonRay/openmoonray#331 ·
-
难度 3/5 1-2 天 新手友好度 68/100
OpenMoonRay/openmoonray#330 ·