Types
CubemapProbe = ref object of GameObject cubemap*: Framebuffer ubo_index*: int32 resolution*: int32 influence_type*: ProbeInfluenceType parallax_type*: ProbeParallaxType influence_distance*: float32 parallax_distance*: float32 falloff*: float32 intensity*: float32 clipping_start*: float32 clipping_end*: float32 update_strategy*: ProbeUpdateStrategy used*: bool
- Source Edit
CubemapProbeUniform = object world2cube*: Mat4 resolution*: float32 falloff_inv*: float32 influence_type*: float32 parallax_type*: float32 par_dist_rel_inv*: float32 intensity*: float32 roughness_lod*: float32 pad0: float32
- Source Edit
ProbeInfluenceType = enum SphereInfluence, BoxInfluence
- Source Edit
ProbeParallaxType = enum NoParallax = -1, SphereParallax, BoxParallax
- Source Edit
SH9Uniform = object coefficients*: array[1, array[9, Vec4]] transform*: Mat4
- Source Edit
Procs
proc generate_cubemap_mipmaps(scene: Scene; cubemap: Framebuffer; use_roughness_prefiltering = false; mipmap_shader: Material = nil) {. ...raises: [Exception, ValueError, CatchableError], tags: [RootEffect].}
- Source Edit
func getCubemapSideMatrix(side: int; position = vec3()): Mat4 {....raises: [], tags: [].}
- Source Edit
proc newCubemapProbe(engine: MyouEngine; name: string = "camera"; scene: Scene = nil; influence_type: ProbeInfluenceType = SphereInfluence; influence_distance: float32 = 2.5; falloff: float32 = 0.2; intensity: float32 = 1; clipping_start: float32 = 0.8; clipping_end: float32 = 40; parallax_type: ProbeParallaxType = NoParallax; parallax_distance: float32 = 0.0): CubemapProbe {. ...raises: [Exception], tags: [RootEffect].}
- Source Edit
proc render_background_cubemap(scene: Scene; use_roughness_prefiltering = false; mipmap_shader: Material = nil; world_to_cube_matrix: Mat4 = mat4(); upload_UBO = true) {. ...raises: [Exception, ValueError, CatchableError], tags: [RootEffect].}
- Source Edit
proc render_cubemap(self: CubemapProbe; use_roughness_prefiltering = false; mipmap_shader: Material = nil) {. ...raises: [Exception, ValueError, CatchableError], tags: [RootEffect].}
- Source Edit
Methods
method get_cubemap_probe(self: CubemapProbe): CubemapProbe {....raises: [], tags: [].}
- Source Edit
method get_cubemap_probe(self: GameObject): CubemapProbe {.base, ...raises: [], tags: [].}
- Source Edit
method is_cubemap_probe(self: CubemapProbe): bool {....raises: [], tags: [].}
- Source Edit
method is_cubemap_probe(self: GameObject): bool {.base, ...raises: [], tags: [].}
- Source Edit
Templates
template getCubemapSideAxis(side: int): int
- Source Edit