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§
Sourcefn camera_setting(self, cam: impl Into<Camera>)
fn camera_setting(self, cam: impl Into<Camera>)
CameraSetting(crate::unity_engine::camera::Camera) overload
Sourcefn set_render_texture_size(self, width: impl Into<f32>, height: impl Into<f32>)
fn set_render_texture_size(self, width: impl Into<f32>, height: impl Into<f32>)
SetRenderTextureSize(f32, f32) overload
Sourcefn create_texture(self)
fn create_texture(self)
CreateTexture() overload
Sourcefn render_reflection(self, transform_mesh: impl Into<Transform>)
fn render_reflection(self, transform_mesh: impl Into<Transform>)
RenderReflection(crate::unity_engine::transform::Transform) overload
Sourcefn set_camera_transform(self, transform_mesh: impl Into<Transform>)
fn set_camera_transform(self, transform_mesh: impl Into<Transform>)
SetCameraTransform(crate::unity_engine::transform::Transform) overload
Sourcefn calculate_oblique_matrix(
self,
projection: impl Into<Matrix4x4>,
clip_plane: impl Into<Vector4>,
) -> Matrix4x4
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
Sourcefn calculate_reflection_matrix(
self,
reflection_mat: impl Into<Matrix4x4>,
plane: impl Into<Vector4>,
) -> Matrix4x4
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
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§
impl<__T: IReflectionCamera> IReflectionCameraMethods for __T
Available on crate feature
app-water-reflectioncamera only.