mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 13:13:49 +00:00
add docs to view uniform frustum field (#16369)
just some docs to save future me some clicking around
This commit is contained in:
parent
1cb5604a17
commit
c6fe275b21
2 changed files with 6 additions and 0 deletions
|
@ -429,6 +429,9 @@ pub struct ViewUniform {
|
|||
pub exposure: f32,
|
||||
// viewport(x_origin, y_origin, width, height)
|
||||
pub viewport: Vec4,
|
||||
/// 6 world-space half spaces (normal: vec3, distance: f32) ordered left, right, top, bottom, near, far.
|
||||
/// The normal vectors point towards the interior of the frustum.
|
||||
/// A half space contains `p` if `normal.dot(p) + distance > 0.`
|
||||
pub frustum: [Vec4; 6],
|
||||
pub color_grading: ColorGradingUniform,
|
||||
pub mip_bias: f32,
|
||||
|
|
|
@ -25,6 +25,9 @@ struct View {
|
|||
exposure: f32,
|
||||
// viewport(x_origin, y_origin, width, height)
|
||||
viewport: vec4<f32>,
|
||||
// 6 world-space half spaces (normal: vec3, distance: f32) ordered left, right, top, bottom, near, far.
|
||||
// The normal vectors point towards the interior of the frustum.
|
||||
// A half space contains `p` if `normal.dot(p) + distance > 0.`
|
||||
frustum: array<vec4<f32>, 6>,
|
||||
color_grading: ColorGrading,
|
||||
mip_bias: f32,
|
||||
|
|
Loading…
Reference in a new issue