Skip to content

Commit a0d47e5

Browse files
committed
Fix types in 13
1 parent cad65ef commit a0d47e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

13_generate_mipmaps/shaders/shaders.kong

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const mip_destination_texture: tex2d;
7979
fun comp(): void {
8080
var index: uint2 = dispatch_thread_id().xy;
8181
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);
82+
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);
8383
mip_destination_texture[index] = color;
8484
}
8585
}

0 commit comments

Comments
 (0)