projects
/
occt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0030700: Visualization, TKOpenGl - support PBR Metallic-Roughness shading model
[occt.git]
/
src
/
Shaders
/
PhongShading.fs
diff --git
a/src/Shaders/PhongShading.fs
b/src/Shaders/PhongShading.fs
index
d102812
..
1e52cbe
100755
(executable)
--- a/
src/Shaders/PhongShading.fs
+++ b/
src/Shaders/PhongShading.fs
@@
-29,7
+29,7
@@
void pointLight (in int theId,
in vec3 thePoint)
{
vec3 aLight = occLight_Position (theId).xyz;
- if (
occLight_IsHeadlight (theId) == 0
)
+ if (
!occLight_IsHeadlight (theId)
)
{
aLight = vec3 (occWorldViewMatrix * vec4 (aLight, 1.0));
}