mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:10:05 +00:00
Data moments should not have GLSL flat qualifiers to be sampled more than once per triangle
This commit is contained in:
parent
80d5be956d
commit
1b07c6f5b5
2 changed files with 5 additions and 5 deletions
|
|
@ -9,14 +9,14 @@ uniform float uDataMomentScale;
|
|||
|
||||
uniform bool uCFPEnabled;
|
||||
|
||||
flat in uint dataMoment;
|
||||
flat in uint cfpMoment;
|
||||
in float dataMoment;
|
||||
in float cfpMoment;
|
||||
|
||||
layout (location = 0) out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
float texCoord = (float(dataMoment) - float(uDataMomentOffset)) / uDataMomentScale;
|
||||
float texCoord = (dataMoment - float(uDataMomentOffset)) / uDataMomentScale;
|
||||
|
||||
if (uCFPEnabled && cfpMoment > 8u)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ layout (location = 2) in uint aCfpMoment;
|
|||
uniform mat4 uMVPMatrix;
|
||||
uniform vec2 uMapScreenCoord;
|
||||
|
||||
flat out uint dataMoment;
|
||||
flat out uint cfpMoment;
|
||||
out float dataMoment;
|
||||
out float cfpMoment;
|
||||
|
||||
vec2 latLngToScreenCoordinate(in vec2 latLng)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue