Add new "unclamped" behavior to DirectionalMap

未关闭
#283 4 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@zychen8 已经在做这个了。

开始于 2026年9月21日。

评估

这个 Issue 还没有评估数据。

描述

enhancement good first issue help wanted

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

OpenMoonRay/openmoonray 的其他 Issue

查看 OpenMoonRay/openmoonray 的全部 Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。