We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EPS_COLは値のソフトニング目的らしい
UniVRM/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl
Line 126 in ffcf209
条件演算子で1度の計算がやや長くなるが、シェーダモデル3以上なら動きそう const half3 parametricRimFactor = _RimFresnelPower == 0.0 ? _RimColor.rgb : pow(saturate(1.0 - dot(input.normalWS, input.viewDirWS) + _RimLift), _RimFresnelPower) * _RimColor.rgb;
const half3 parametricRimFactor = _RimFresnelPower == 0.0 ? _RimColor.rgb : pow(saturate(1.0 - dot(input.normalWS, input.viewDirWS) + _RimLift), _RimFresnelPower) * _RimColor.rgb;
シェーダのif節は有名な通り処理がその分増えますが、条件演算子は結構シンプルでどっちの値を選ぶかという処理になったはずです。 参考ページ https://light11.hatenadiary.com/entry/2018/07/08/134440
The text was updated successfully, but these errors were encountered:
No branches or pull requests
該当箇所
EPS_COLは値のソフトニング目的らしい
UniVRM/Assets/VRMShaders/VRM10/MToon10/Resources/VRM10/vrmc_materials_mtoon_lighting_mtoon.hlsl
Line 126 in ffcf209
提案
条件演算子で1度の計算がやや長くなるが、シェーダモデル3以上なら動きそう
const half3 parametricRimFactor = _RimFresnelPower == 0.0 ? _RimColor.rgb : pow(saturate(1.0 - dot(input.normalWS, input.viewDirWS) + _RimLift), _RimFresnelPower) * _RimColor.rgb;
補足
シェーダのif節は有名な通り処理がその分増えますが、条件演算子は結構シンプルでどっちの値を選ぶかという処理になったはずです。
参考ページ https://light11.hatenadiary.com/entry/2018/07/08/134440
The text was updated successfully, but these errors were encountered: