Skip to content

Commit 2ccd689

Browse files
committed
GPUParticle : Fix sample in DirectX
1 parent f4474b7 commit 2ccd689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hrt/prefab/fx/gpuemitter/UpdateParamShader.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class UpdateParamShader extends hxsl.Shader {
1515

1616
function main() {
1717
var idx = computeVar.globalInvocation.x;
18-
batchBuffer[idx * stride + pos] = paramTexture.get(vec2(1.0 - particleBuffer[idx].life / particleBuffer[idx].lifeTime, row)).x;
18+
batchBuffer[idx * stride + pos] = paramTexture.getLod(vec2(1.0 - particleBuffer[idx].life / particleBuffer[idx].lifeTime, row), 0.0).x;
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)