Page MenuHome

Fix T41456: soft light texture blend mode zero effect
ClosedPublic

Authored by Kévin Dietrich (kevindietrich) on Aug 16 2014, 11:04 PM.

Diff Detail

Repository
rB Blender
Branch
fix_t41456

Event Timeline

Kévin Dietrich (kevindietrich) retitled this revision from to Fix T41456: soft light texture blend mode zero effect.
Kévin Dietrich (kevindietrich) updated this object.

Generally patch LGTM,, with few minor nitpicks.

source/blender/gpu/shaders/gpu_shader_material.glsl
1022

spacing here and below in assignment

1031

spacing in all assignments in this function

I essentially copied the code from other functions higher in the same file, and didn't change the code style. Will also remove a comment in DNA_texture_types.h stating that MTEX_SOFT_LIGHT and MTEX_LIN_LIGHT flags are "free for use" as they are used now :)

Kévin Dietrich (kevindietrich) edited edge metadata.
  • Spaces arround assignemts and remove outdated comment
  • Remove unused variable

Thanks for the patch, commited.

The crappy thing is that I did it with arc and it changed the commiter name to mine...Thankfully the link still points to that Diff revision so at least it's possible to see who wrote it here. I'll try to remember to apply it manually or amend the commit next time to keep the name of the patch writer intact.