-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shader updates improves performance and visual quality
removing legacy _opacity attribute support
- Loading branch information
1 parent
52b3d61
commit f207786
Showing
5 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
void gaussianSplatStage(inout vec4 color, in ProcessedAttributes attributes) { | ||
float A = -dot(v_vertPos, v_vertPos); | ||
if(A < -4.0) | ||
float A = dot(v_vertPos, v_vertPos); | ||
if(A > 2.0) | ||
discard; | ||
float B = exp(A) * v_splatColor.a; | ||
color = vec4(v_splatColor.rgb * B , B); | ||
|
||
float B = exp(-A * 2.5) * v_splatColor.a; | ||
color = vec4(v_splatColor.rgb * B, B); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters