MCPcopy Create free account

hub / github.com/Twinklebear/tray_rust / functions

Functions483 in github.com/Twinklebear/tray_rust

↓ 1 callersMethodweight
(&self, x: f32, y: f32)
src/film/filter/gaussian.rs:33
↓ 1 callersFunctionworker_node
(args: Args)
src/main.rs:148
Methodadd
Add two normals together
src/linalg/normal.rs:46
Methodadd
Add two matrices together
src/linalg/matrix4.rs:219
Methodadd
Add two points together
src/linalg/point.rs:39
Methodadd
Add two quaternions
src/linalg/quaternion.rs:118
Methodadd
Add two vectors together
src/linalg/vector.rs:41
Methodadd
Add two colors together
src/film/color.rs:82
Methodadd_pixels
Add the floating point RGBAf32 pixels to the image. It is assumed that `pixels` contains a `dim.0` by `dim.1` pixel image.
src/film/image.rs:21
Methodall
Get an EnumSet containing all flags for all BxDFs. This would be all types of BRDFs and BTDFs
src/bxdf/mod.rs:65
Methodall_brdf
Get an EnumSet containing all flags for reflective BxDFs (eg. BRDFs)
src/bxdf/mod.rs:52
Methodall_btdf
Get an EnumSet containing all flags for transmissive BxDFs (eg. BTDFs)
src/bxdf/mod.rs:58
Methodall_types
Get an EnumSet containing all flags for the different types of BxDFs: Diffuse, Glossy, Specular
src/bxdf/mod.rs:44
Methodanimated_fov
Create a camera with some orientation in the world specified by `cam_world` and an animated perspective projection with `fov`. The render target dimen
src/film/camera.rs:97
Functionarctan_theta
Compute the value of arctan theta for a vector in shading space
src/bxdf/mod.rs:146
Methodarea
Create a new area light using the geometry passed to emit light TODO: We need sample methods for geometry to do this We also need MIS in the path trac
src/geometry/emitter.rs:94
Methodarea_light
Create an instance of the geometry in the scene that will emit and receive light
src/geometry/instance.rs:84
Methodblack
Create a black color
src/film/color.rs:34
Methodbounds
(&self, start: f32, end: f32)
src/geometry/emitter.rs:154
Methodbounds
(&self, start: f32, end: f32)
src/geometry/receiver.rs:55
Methodbounds
(&self, _: f32, _: f32)
src/geometry/disk.rs:79
Methodbounds
(&self, start: f32, end: f32)
src/geometry/instance.rs:130
Methodbounds
(&self, start: f32, end: f32)
src/geometry/animated_mesh.rs:137
Methodbounds
(&self, _: f32, _: f32)
src/geometry/rectangle.rs:67
Methodbounds
(&self, start: f32, end: f32)
src/geometry/mesh.rs:88
Methodbounds
(&self, _: f32, _: f32)
src/geometry/sphere.rs:85
Methodbroadcast
Initialize the normal with the same value of x, y, z
src/linalg/normal.rs:21
Methodbroadcast
Initialize the point with the same value of x, y, z
src/linalg/point.rs:19
Methodbroadcast
Initialize the vector with the same value of x, y, z
src/linalg/vector.rs:20
Methodbroadcast
Create an RGB color using the same value for all channels
src/film/color.rs:30
Methodbsdf
(&self, hit: &Intersection<'a, 'b>, alloc: &'c Allocator)
src/material/metal.rs:56
Methodbsdf
(&'a self, hit: &Intersection<'a, 'b>, alloc: &'c Allocator)
src/material/matte.rs:52
Methodbsdf
(&self, hit: &Intersection<'a, 'b>, alloc: &'c Allocator)
src/material/rough_glass.rs:57
Methodbsdf
(&'a self, hit: &Intersection<'a, 'b>, alloc: &'c Allocator)
src/material/specular_metal.rs:49
Methodbsdf
(&'a self, hit: &Intersection<'a, 'b>, alloc: &'c Allocator)
src/material/glass.rs:51
Methodbsdf
(&self, hit: &Intersection<'a, 'b>, alloc: &'c Allocator)
src/material/plastic.rs:59
Methodbuild
Construct the BVH tree using SAH splitting heuristic to determine split locations returns the root node of the subtree constructed over the slice of g
src/geometry/bvh.rs:139
Methodbuild_leaf
Construct a new leaf node containing the passed geometry. Indices will be added to `ordered_geom` to instruct how the flattened tree should be placed
src/geometry/bvh.rs:236
Methodbxdf_type
(&self)
src/bxdf/lambertian.rs:26
Methodbxdf_type
(&self)
src/bxdf/torrance_sparrow.rs:34
Methodbxdf_type
(&self)
src/bxdf/microfacet_transmission.rs:59
Methodbxdf_type
(&self)
src/bxdf/specular_transmission.rs:28
Methodbxdf_type
(&self)
src/bxdf/specular_reflection.rs:28
Methodbxdf_type
(&self)
src/bxdf/oren_nayar.rs:37
Methodchild_segment
Create a child ray segment from `o + min_t * d` to `o + max_t * d`
src/linalg/ray.rs:38
Functioncos_hemisphere_pdf
Compute the PDF of the cosine weighted hemisphere sampling
src/mc.rs:18
Methoddecompose
Decompose the transformation into its component translation, rotation and scaling operations.
src/linalg/keyframe.rs:32
Methoddimensions
(&self)
src/sampler/ld.rs:67
Methoddimensions
(&self)
src/sampler/uniform.rs:48
Methoddimensions
(&self)
src/sampler/adaptive.rs:120
Methoddimensions
Get the dimensions of the render target
src/film/render_target.rs:181
Methoddistance
Compute the distance between this point and another
src/linalg/point.rs:31
Methoddiv
Divide the normals components by the right hand side's components
src/linalg/normal.rs:86
Methoddiv
Divide the points components by the right hand side's components
src/linalg/point.rs:95
Methoddiv
Divide the quaternion by a scalar
src/linalg/quaternion.rs:150
Methoddiv
Divide the vectors components by the right hand side's components
src/linalg/vector.rs:89
Methoddiv
Divide the channels of one color by another
src/film/color.rs:122
Methodeq
(&self, other: &ColorKeyframe)
src/film/animated_color.rs:32
Methodeval
(&self, _: &Vector, _: &Vector)
src/bxdf/lambertian.rs:32
Methodeval
(&self, w_oi: &Vector, w_ii: &Vector)
src/bxdf/merl.rs:47
Methodeval
We'll never exactly hit the specular transmission direction with some pair so this just returns black. Use `sample` instead
src/bxdf/specular_transmission.rs:36
Methodeval
We'll never exactly hit the specular reflection direction with some pair so this just returns black. Use `sample` instead
src/bxdf/specular_reflection.rs:36
Methodeval
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/oren_nayar.rs:43
Methodexp
Return the color with values { e^r, e^g, e^b }
src/film/color.rs:73
Methodflatten_tree
Flatten the BVH sub-tree pointed too by the node passed into the vec passed Returns the index that the node was inserted at in the tree
src/geometry/bvh.rs:248
Methodfrom_iter
Create the matrix using the values from the iterator. The iterator should return the rows of the matrix one after another. The first 16 values returne
src/linalg/matrix4.rs:193
Methodfrom_mat
Construct a transform from an existing matrix
src/linalg/transform.rs:24
Methodfrom_matrix
Construct a quaternion from the rotation matrix Based on Shoemake 1991
src/linalg/quaternion.rs:25
Methodfrom_pair
Construct a transform from an existing matrix/inverse pair
src/linalg/transform.rs:28
Methodfrom_parts
Construct the keyframe from the decomposed transformation
src/linalg/keyframe.rs:27
Methodfrom_transform
Construct the quaternion from the transform
src/linalg/quaternion.rs:61
Methodfrom_u32
(v: u32)
src/bxdf/mod.rs:87
Methodget_region
(&self)
src/sampler/uniform.rs:52
Methodget_region
(&self)
src/sampler/adaptive.rs:124
Methodget_renderf32
Get the raw floating point framebuffer
src/film/render_target.rs:243
Methodget_samples
(&mut self, samples: &mut Vec<(f32, f32)>, _: &mut StdRng)
src/sampler/uniform.rs:23
Methodget_samples
(&mut self, samples: &mut Vec<(f32, f32)>, rng: &mut StdRng)
src/sampler/adaptive.rs:82
Methodget_samples_1d
(&mut self, samples: &mut [f32], rng: &mut StdRng)
src/sampler/uniform.rs:41
Methodget_samples_1d
(&mut self, samples: &mut [f32], rng: &mut StdRng)
src/sampler/adaptive.rs:113
Methodget_samples_2d
(&mut self, samples: &mut [(f32, f32)], rng: &mut StdRng)
src/sampler/uniform.rs:35
Methodget_transform
Get the transform to place the receiver into world space
src/geometry/receiver.rs:45
Methodget_transform
Get the transform for this instance
src/geometry/instance.rs:114
Methodhalf_vector
(w_o: &Vector, w_i: &Vector, eta: (f32, f32))
src/bxdf/microfacet_transmission.rs:53
Methodhas_infs
Check if any of the color channels are infinite
src/film/color.rs:55
Methodhas_nans
(&self)
src/linalg/matrix4.rs:178
Methodhas_nans
Check if any of the color channels are NaN
src/film/color.rs:51
Methodhas_scale
Returns true if the transform has applies a scaling
src/linalg/transform.rs:141
Methodheight
(&self)
src/film/filter/mitchell_netravali.rs:58
Methodidentity
Construct the identity transformation
src/linalg/transform.rs:17
Methodidentity
Return the identity matrix
src/linalg/matrix4.rs:17
Methodidentity
Construct an identity quaternion
src/linalg/quaternion.rs:20
Methodillumination
(&self, _: &Scene, _: &[&Emitter], _: &Ray, hit: &Intersection, _: &mut Sampler, _: &mut S
src/integrator/normals_debug.rs:28
Methodillumination
(&self, scene: &Scene, light_list: &[&Emitter], ray: &Ray, hit: &Intersection, sampler: &m
src/integrator/whitted.rs:41
Methodindex
Access the BBox's min/max points by index - 0 = min - 1 = max
src/geometry/bbox.rs:113
Methodindex
Access the normal by index - 0 = x - 1 = y - 2 = z
src/linalg/normal.rs:114
Methodindex
Access the point by index - 0 = x - 1 = y - 2 = z
src/linalg/point.rs:123
Methodindex
Access the vector by index - 0 = x - 1 = y - 2 = z
src/linalg/vector.rs:117
Methodindex
Access the channels by index - 0 = r - 1 = g - 2 = b - 3 = a
src/film/color.rs:151
Methodindex_mut
Access the BBox's min/max points by index - 0 = min - 1 = max
src/geometry/bbox.rs:127
Methodindex_mut
Access the normal by index - 0 = x - 1 = y - 2 = z
src/linalg/normal.rs:130
← previousnext →201–300 of 483, ranked by callers