Lukas Stockner LukasStockner
  • Joined on 2013-12-26
Lukas Stockner commented on pull request blender/blender#112895 2023-10-19 03:43:04 +02:00
Shader: Only clamp undefined or unsupported inputs of Principled BSDF

Nitpick, but for some weird corner cases, clamping the product instead of the individual factors might be nicer?

Lukas Stockner commented on pull request blender/blender#112895 2023-10-19 03:43:03 +02:00
Shader: Only clamp undefined or unsupported inputs of Principled BSDF

Shouldn't this stay [0..1]?

Lukas Stockner commented on pull request blender/blender#112895 2023-10-19 03:43:03 +02:00
Shader: Only clamp undefined or unsupported inputs of Principled BSDF

I'd rather make sure the weight doesn't become zero in the first place - I'll update you once I got that fix done.

Lukas Stockner commented on pull request blender/blender#112895 2023-10-19 03:43:02 +02:00
Shader: Only clamp undefined or unsupported inputs of Principled BSDF

I'm not sure where?

Lukas Stockner commented on pull request blender/blender#112895 2023-10-19 03:43:01 +02:00
Shader: Only clamp undefined or unsupported inputs of Principled BSDF

Might as well do it explicitly here I guess.

Lukas Stockner commented on pull request blender/blender#112895 2023-10-19 03:32:23 +02:00
Shader: Only clamp undefined or unsupported inputs of Principled BSDF

Thanks for the extensive testing (and for implementing the result), this is extremely helpful.

All suggestions sound good to me. Negative values are always questionable (emission being the…

Lukas Stockner commented on pull request blender/blender#110993 2023-10-19 02:55:49 +02:00
Cycles: Rework Principled BSDF Clearcoat

Coat Thickness is one of the many options that could theoretically be added, but in practice it's always a balancing act between supporting more use cases vs. keeping the node manageable.

In…

Lukas Stockner pushed to main at blender/blender 2023-10-19 01:54:12 +02:00
f9a36b1548 blenloader: Refactor the write wrappers.
Lukas Stockner merged pull request blender/blender#113071 2023-10-19 01:54:12 +02:00
blenloader: Refactor the write wrappers.
Lukas Stockner approved blender/blender#113468 2023-10-17 04:00:49 +02:00
Shader: Adjust Coat Tint Color intensity based on Coat Weight

Makes sense and is actually more consistent with the OpenPBR interpretation of weights (there, the weight of layer represents the probability of hitting it on a sub-pixel level, so the mixing should always be linear).

Lukas Stockner pushed to main at blender/blender 2023-10-06 02:32:06 +02:00
7d908ed091 Merge branch 'blender-v4.0-release'
887570065f Fix #112948: Cycles: Principled Sheen over Coat should use Coat normal
ecb52140cd Fix #113128: Socket hide value not copied to group input
Compare 3 commits »
Lukas Stockner closed issue blender/blender#112948 2023-10-06 02:32:05 +02:00
Principled BSDF: Sheen uses wrong normals
Lukas Stockner pushed to blender-v4.0-release at blender/blender 2023-10-06 02:26:23 +02:00
887570065f Fix #112948: Cycles: Principled Sheen over Coat should use Coat normal
Lukas Stockner commented on issue blender/blender#112948 2023-10-06 01:49:42 +02:00
Principled BSDF: Sheen uses wrong normals

Yeah, using mix(Normal, CoatNormal, saturate(CoatWeight)) as the Sheen normal seems reasonable to me. I'll add it for now, we can align with OpenPBR later if they go a different route.

A…

Lukas Stockner commented on issue blender/blender#111136 2023-10-06 01:45:31 +02:00
Subsurface scatering does not indirectly affect diffuse.

Hello, thank you for your answers. I don't know what to think: on the one hand, it's a clever optimization, but on the other, it implies that the object doesn't vary too much in thickness and…

Lukas Stockner commented on issue blender/blender#111160 2023-10-06 01:33:27 +02:00
Diffuse materials loose their specularity at IOR >=4 in certain situations.

I just checked and surprisingly, it does indeed seem like the Fresnel peak region gets narrower at high IORs.

Of course, typically the higher F0 would mean that the overall reflectivity still…

Lukas Stockner approved blender/blender#113071 2023-10-06 00:59:27 +02:00
blenloader: Refactor the write wrappers.

Two minor details, but otherwise seems good to me now.

Lukas Stockner commented on pull request blender/blender#113071 2023-10-06 00:59:26 +02:00
blenloader: Refactor the write wrappers.

Again, code style nitpicking: Personally, for file-local classes like this, I'd prefer to have the function inline here, not separately below. I don't think there's an official style recommendation for this though, so feel free to keep it like this if you prefer it.