Commit 00cb114
authored
Background material: Fix material not working with floating origin mode + fix use of the sceneCenter property (#17362)
It also fixes a bug in the original implementation of the background
material because `vBackgroundCenter` was only set when
`REFLECTIONFRESNEL` was defined, whereas if you look at the shader code,
you will see that this uniform is only used when both `REFLECTIONFRESNEL
`and `REFLECTIONFALLOFF `are defined, or when `OPACITYFRESNEL` is
defined.1 parent 9f4c325 commit 00cb114
File tree
1 file changed
+16
-12
lines changed- packages/dev/core/src/Materials/Background
1 file changed
+16
-12
lines changedLines changed: 16 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
967 | 982 | | |
968 | 983 | | |
969 | 984 | | |
| |||
972 | 987 | | |
973 | 988 | | |
974 | 989 | | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | 990 | | |
987 | 991 | | |
988 | 992 | | |
| |||
0 commit comments