Skip to content

Commit

Permalink
fix project normal (#2910)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhuang01 committed Apr 6, 2019
1 parent f32a862 commit 4750f60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/core/src/shaderlib/project/project.glsl.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ vec4 project_size(vec4 meters) {
//
vec3 project_normal(vec3 vector) {
if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNG_LAT ||
project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS) {
project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSETS ||
project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT_AUTO_OFFSET) {
return normalize(vector * project_uCommonUnitsPerWorldUnit);
}
// Apply model matrix
Expand Down

0 comments on commit 4750f60

Please sign in to comment.