Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.

Bindings

skybox

#
@group(0)
@binding(0)
var skybox: texture_cube<f32>

skybox_sampler

#
@group(0)
@binding(1)
var skybox_sampler: sampler

view

#
@group(0)
@binding(2)
var<uniform> view: View

uniforms

#
@group(0)
@binding(3)
var<uniform> uniforms: SkyboxUniforms

Structures

SkyboxUniforms

#
struct SkyboxUniforms {
brightness: f32 ,
transform: mat4x4<f32> ,
@if(SIXTEEN_BYTE_ALIGNMENT)
_wasm_padding_8b: u32 ,
@if(SIXTEEN_BYTE_ALIGNMENT)
_wasm_padding_12b: u32 ,
@if(SIXTEEN_BYTE_ALIGNMENT)
_wasm_padding_16b: u32 ,
}

VertexOutput

#
struct VertexOutput {
@builtin(position)
position: vec4<f32> ,
}

Functions

coords_to_ray_direction

#
fn coords_to_ray_direction (
position: vec2<f32>
, 
viewport: vec4<f32>
) -> vec3<f32>

skybox_vertex

#
@vertex
Processes each 3D point in a model before it's drawn
fn skybox_vertex (
@builtin(vertex_index)
vertex_index: u32
) -> VertexOutput

skybox_fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn skybox_fragment ( ) ->
@location(0)
vec4<f32>
Contents