mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 00:33:51 +00:00
13 lines
403 B
WebGPU Shading Language
13 lines
403 B
WebGPU Shading Language
@group(0) @binding(4)
|
|
var point_shadow_textures: texture_depth_cube_array;
|
|
@group(0) @binding(5)
|
|
var point_shadow_textures_sampler: sampler_comparison;
|
|
|
|
@fragment
|
|
fn fragment() -> @location(0) vec4<f32> {
|
|
let frag_ls = vec4<f32>(1., 1., 2., 1.).xyz;
|
|
let a = textureSampleCompare(point_shadow_textures, point_shadow_textures_sampler, frag_ls, i32(1), 1.);
|
|
|
|
return vec4<f32>(a, 1., 1., 1.);
|
|
}
|