We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad65ef commit a0d47e5Copy full SHA for a0d47e5
1 file changed
13_generate_mipmaps/shaders/shaders.kong
@@ -79,7 +79,7 @@ const mip_destination_texture: tex2d;
79
fun comp(): void {
80
var index: uint2 = dispatch_thread_id().xy;
81
if (index.x < mip_constants.size.x && index.y < mip_constants.size.y) {
82
- var color: float4 = sample_lod(mip_source_texture, mip_source_sampler, float2(index.x / float(mip_constants.size.x), index.y / float(mip_constants.size.y)), 0);
+ var color: float4 = sample_lod(mip_source_texture, mip_source_sampler, float2(float(index.x) / float(mip_constants.size.x), float(index.y) / float(mip_constants.size.y)), 0.0);
83
mip_destination_texture[index] = color;
84
}
85
0 commit comments