Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Twinklebear/tray_rust
/ functions
Functions
483 in github.com/Twinklebear/tray_rust
⨍
Functions
483
◇
Types & classes
105
Method
pdf
(&self, p: &Point, w_i: &Vector)
src/geometry/disk.rs:97
Method
pdf
Compute the PDF that the ray from `p` with direction `w_i` intersects the shape. This is the same as disk for computing PDF, we just use the rectangle
src/geometry/rectangle.rs:91
Method
pdf
Compute the PDF that the ray from `p` with direction `w_i` intersects the shape
src/geometry/sphere.rs:131
Method
pdf
(&self, w_h: &Vector)
src/bxdf/microfacet/beckmann.rs:47
Method
pdf
(&self, w_h: &Vector)
src/bxdf/microfacet/ggx.rs:44
Method
perspective
Construct a perspective transformation
src/linalg/transform.rs:126
Method
point_light
Create a point light at the origin that is transformed by `transform` to its location in the world
src/geometry/instance.rs:90
Method
print_tree
(&self, depth: usize)
src/geometry/bvh.rs:366
Method
ready
(&mut self, event_loop: &mut EventLoop<Master>, token: Token, event: EventSet)
src/exec/distrib/master.rs:199
Method
receiver
Create an instance of the geometry in the scene that will only receive light.
src/geometry/instance.rs:79
Method
report_results
Let the sampler inspect the results of sampling the pixel so it can determine if more samples should be taken. Returns true if these samples are ok to
src/sampler/mod.rs:48
Method
rotate
Construct a transform to rotate about `axis` by `deg` degrees
src/linalg/transform.rs:91
Method
rotate_x
Construct a transform to rotate `deg` degrees about the x axis
src/linalg/transform.rs:58
Method
rotate_y
Construct a transform to rotate `deg` degrees about the y axis
src/linalg/transform.rs:69
Method
rotate_z
Construct a transform to rotate `deg` degrees about the z axis
src/linalg/transform.rs:80
Method
sample
(&self, _: &Point, samples: &(f32, f32))
src/geometry/rectangle.rs:81
Method
sample
Sample the object using the probability density of the solid angle from `p` to the sampled point on the surface. Returns the sampled point and the sur
src/geometry/sphere.rs:99
Method
sample
(&self, w_o: &Vector, samples: &(f32, f32))
src/bxdf/torrance_sparrow.rs:56
Method
sample
Sample an incident light direction for an outgoing light direction `w_o`. `samples` will be used to randomly sample a direction for the outgoing light
src/bxdf/mod.rs:102
Method
sample
(&self, w_o: &Vector, samples: &(f32, f32))
src/bxdf/microfacet_transmission.rs:84
Method
sample
Sampling the specular BTDF just returns the specular transmission direction for the light leaving along `w_o`
src/bxdf/specular_transmission.rs:39
Method
sample
Sampling the specular BRDF just returns the specular reflection direction for the light leaving along `w_o`
src/bxdf/specular_reflection.rs:39
Method
sample
(&self, _: &Vector, samples: &(f32, f32))
src/bxdf/microfacet/beckmann.rs:36
Method
sample
(&self, _: &Vector, samples: &(f32, f32))
src/bxdf/microfacet/ggx.rs:37
Method
sample_color
(&self, u: f32, v: f32, _: f32)
src/texture/image.rs:42
Method
sample_color
(&self, u: f32, v: f32, time: f32)
src/texture/animated_image.rs:47
Method
sample_f32
(&self, u: f32, v: f32, _: f32)
src/texture/image.rs:36
Method
sample_f32
(&self, u: f32, v: f32, time: f32)
src/texture/animated_image.rs:36
Method
scale
Construct a transform to scale x, y and z by the values in the vector
src/linalg/transform.rs:45
Method
segment
Create a new segment ray from `o + min_t * d` to `o + max_t * d`
src/linalg/ray.rs:30
Method
select_block
(&mut self, start: (u32, u32))
src/sampler/uniform.rs:49
Method
select_block
(&mut self, start: (u32, u32))
src/sampler/adaptive.rs:121
Method
set_transform
Set the transform to place the receiver into world space
src/geometry/receiver.rs:49
Method
set_transform
Set the transform for this instance
src/geometry/instance.rs:121
Method
shadowing_masking
(&self, w_i: &Vector, w_o: &Vector, w_h: &Vector)
src/bxdf/microfacet/beckmann.rs:50
Method
singular
Create a new box containing only the point passed
src/geometry/bbox.rs:23
Method
span
Create a new box spanning [min, max]
src/geometry/bbox.rs:27
Method
specular
Get an EnumSet containing flags for all types of specular BxDFs
src/bxdf/mod.rs:67
Function
spherical_dir_coords
Compute the direction specified by `theta` and `phi` in the coordinate system formed by `x`, `y` and `z`
src/linalg/mod.rs:61
Method
start
(img_dim: (usize, usize))
src/exec/distrib/master.rs:39
Method
start_workers
Create a new master that will contact the worker nodes passed and send instructions on what parts of the scene to start rendering
src/exec/distrib/master.rs:88
Method
sub
Subtract two normals
src/linalg/normal.rs:54
Method
sub
Subtract two matrices
src/linalg/matrix4.rs:227
Method
sub
Subtract two points to get the vector between them
src/linalg/point.rs:55
Method
sub
Subtract two quaternions
src/linalg/quaternion.rs:126
Method
sub
Subtract two vectors
src/linalg/vector.rs:49
Method
sub
Subtract the two colors
src/film/color.rs:90
Method
tag
Get the tag for this instance
src/geometry/instance.rs:107
Function
test_add
()
src/linalg/matrix4.rs:266
Function
test_cross
()
src/linalg/mod.rs:130
Function
test_distance_sqr
()
src/linalg/point.rs:166
Function
test_dot
()
src/linalg/mod.rs:138
Function
test_face_fwd
()
src/linalg/normal.rs:141
Function
test_idx
()
src/linalg/vector.rs:150
Function
test_len_sqr
()
src/linalg/vector.rs:144
Function
test_mul
()
src/linalg/matrix4.rs:290
Function
test_mult_sanity
()
src/linalg/transform.rs:285
Function
test_partition
()
src/partition.rs:42
Method
test_points
Create an occlusion tester to perform the test between two points
src/light/mod.rs:21
Method
test_ray
Create an occlusion tester to perform the test along the ray starting at `p` and in direction `d`
src/light/mod.rs:26
Function
test_rotate
()
src/linalg/transform.rs:372
Function
test_rotate_x
()
src/linalg/transform.rs:315
Function
test_rotate_y
()
src/linalg/transform.rs:334
Function
test_rotate_z
()
src/linalg/transform.rs:353
Function
test_scale
()
src/linalg/transform.rs:305
Function
test_sub
()
src/linalg/matrix4.rs:278
Function
test_translate
()
src/linalg/transform.rs:295
Method
to_transform
Get the rotation transform described by this quaternion
src/linalg/quaternion.rs:86
Method
to_u32
(&self)
src/bxdf/mod.rs:86
Method
translate
Construct a transformation matrix to translate by the vector
src/linalg/transform.rs:32
Method
unanimated
Create a new non-animated BVH holding the geometry
src/geometry/bvh.rs:29
Method
unanimated
(transform: &Transform)
src/linalg/animated_transform.rs:34
Function
uniform_sample_cone
Uniformly sample a direction in a cone with max angle `cos_theta_max` where the cone lies along the z-axis
src/mc.rs:67
Method
update_deformation
Have the object recompute its bounds for the time range. In the case of deforming geometry this can rebuild acceleration structures for example.
src/geometry/mod.rs:73
Method
update_deformation
(&mut self, start: f32, end: f32)
src/geometry/animated_mesh.rs:140
Method
update_frame
Advance the time the scene is currently displaying to the time range passed
src/scene.rs:152
Method
weight
(&self, x: f32, y: f32)
src/film/filter/mitchell_netravali.rs:53
Method
width
(&self)
src/film/filter/mitchell_netravali.rs:56
Method
with_alpha
Create an RGB color
src/film/color.rs:26
Method
with_keyframes
Create an animated transformation blending between the passed keyframes
src/linalg/animated_transform.rs:22
Method
with_keyframes
Create an animated transform that will blend between the passed keyframes
src/film/animated_color.rs:47
Method
with_normal
Setup the differential geometry using the normal passed for the surface normal
src/geometry/differential_geometry.rs:49
Method
zero
Return the zero matrix
src/linalg/matrix4.rs:13
← previous
401–483 of 483, ranked by callers