Skip to main content

IReflectionCameraMethods

Trait IReflectionCameraMethods 

Source
pub trait IReflectionCameraMethods: IReflectionCamera {
    // Provided methods
    fn camera_setting(self, cam: impl Into<Camera>) { ... }
    fn set_render_texture_size(
        self,
        width: impl Into<f32>,
        height: impl Into<f32>,
    ) { ... }
    fn create_texture(self) { ... }
    fn render_reflection(self, transform_mesh: impl Into<Transform>) { ... }
    fn set_camera_transform(self, transform_mesh: impl Into<Transform>) { ... }
    fn calculate_oblique_matrix(
        self,
        projection: impl Into<Matrix4x4>,
        clip_plane: impl Into<Vector4>,
    ) -> Matrix4x4 { ... }
    fn calculate_reflection_matrix(
        self,
        reflection_mat: impl Into<Matrix4x4>,
        plane: impl Into<Vector4>,
    ) -> Matrix4x4 { ... }
    fn sgn(self, a: impl Into<f32>) -> f32 { ... }
    fn camera_space_plane(
        self,
        cam: impl Into<Camera>,
        pos: impl Into<Vector3>,
        normal: impl Into<Vector3>,
        side_sign: impl Into<f32>,
    ) -> Vector4 { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn camera_setting(self, cam: impl Into<Camera>)

CameraSetting(crate::unity_engine::camera::Camera) overload

Source

fn set_render_texture_size(self, width: impl Into<f32>, height: impl Into<f32>)

SetRenderTextureSize(f32, f32) overload

Source

fn create_texture(self)

CreateTexture() overload

Source

fn render_reflection(self, transform_mesh: impl Into<Transform>)

RenderReflection(crate::unity_engine::transform::Transform) overload

Source

fn set_camera_transform(self, transform_mesh: impl Into<Transform>)

SetCameraTransform(crate::unity_engine::transform::Transform) overload

Source

fn calculate_oblique_matrix( self, projection: impl Into<Matrix4x4>, clip_plane: impl Into<Vector4>, ) -> Matrix4x4

CalculateObliqueMatrix(crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::vector4::Vector4) overload

Source

fn calculate_reflection_matrix( self, reflection_mat: impl Into<Matrix4x4>, plane: impl Into<Vector4>, ) -> Matrix4x4

CalculateReflectionMatrix(crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::vector4::Vector4) overload

Source

fn sgn(self, a: impl Into<f32>) -> f32

Sgn(f32) overload

Source

fn camera_space_plane( self, cam: impl Into<Camera>, pos: impl Into<Vector3>, normal: impl Into<Vector3>, side_sign: impl Into<f32>, ) -> Vector4

CameraSpacePlane(crate::unity_engine::camera::Camera, crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3, f32) overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IReflectionCamera> IReflectionCameraMethods for __T

Available on crate feature app-water-reflectioncamera only.