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
index_mut
Access the point by index - 0 = x - 1 = y - 2 = z
src/linalg/point.rs:155
Method
index_mut
Access the vector by index - 0 = x - 1 = y - 2 = z
src/linalg/vector.rs:133
Method
index_mut
Access the channels by index - 0 = r - 1 = g - 2 = b - 3 = a
src/film/color.rs:169
Method
interior
Construct a new flattened interior node
src/geometry/bvh.rs:299
Method
interpolate
(&self, other: &Keyframe, t: f32)
src/linalg/keyframe.rs:67
Method
intersect
Test the ray for intersection against this insance of geometry. returns Some(Intersection) if an intersection was found and None if not. If an interse
src/geometry/emitter.rs:118
Method
intersect
Test the ray for intersection against this insance of geometry. returns Some(Intersection) if an intersection was found and None if not. If an interse
src/geometry/receiver.rs:29
Method
intersect
Test the ray for intersection against this insance of geometry. returns Some(Intersection) if an intersection was found and None if not. If an interse
src/geometry/instance.rs:96
Method
intersect
(&self, ray: &mut linalg::Ray)
src/geometry/animated_mesh.rs:131
Method
intersect
(&self, ray: &mut linalg::Ray)
src/geometry/mesh.rs:82
Method
inv_height
(&self)
src/film/filter/mitchell_netravali.rs:59
Method
inv_mul_normal
Multiply the normal with the inverse transformation
src/linalg/transform.rs:174
Method
inv_width
(&self)
src/film/filter/mitchell_netravali.rs:57
Method
jacobian
Compute the Jacobian for the change of variables (see [Walter et al 07] section 4.2), here we compute equation 17 in that section.
src/bxdf/microfacet_transmission.rs:43
Method
leaf
Construct a new flattened leaf node
src/geometry/bvh.rs:303
Method
listen_for_master
Listen on the worker `PORT` for the master to contact us and send us instructions about the scene we should render and what parts of it we've been ass
src/exec/distrib/worker.rs:37
Method
load_file
(file: &str)
src/scene.rs:101
Method
load_file
Create a new MERL BRDF by loading the refletance data from a MERL BRDF database file
src/material/merl.rs:51
Method
load_obj
Load all the meshes defined in an OBJ file and return them in a hashmap that maps the model's name in the file to its loaded mesh. TODO: Don't build t
src/geometry/mesh.rs:50
Method
look_at
Construct the look at transform for a camera at `pos` looking at the point `center` oriented with up vector `up`
src/linalg/transform.rs:112
Function
main
()
src/main.rs:168
Function
main
()
examples/plane.rs:16
Function
main
()
examples/sphere.rs:16
Method
map_index
Re-map values from an angular value to the index in the MERL data table
src/bxdf/merl.rs:35
Method
max_spp
(&self)
src/sampler/uniform.rs:46
Method
max_spp
(&self)
src/sampler/adaptive.rs:118
Method
mul
Compose two transformations
src/linalg/transform.rs:194
Method
mul
Multiply two normals
src/linalg/normal.rs:62
Method
mul
Multiply two matrices
src/linalg/matrix4.rs:235
Method
mul
Scale the point by some value
src/linalg/point.rs:71
Method
mul
Multiply the quaternion by a scalar
src/linalg/quaternion.rs:134
Method
mul
Compose the animated transformations
src/linalg/animated_transform.rs:81
Method
mul
Multiply two vectors
src/linalg/vector.rs:57
Method
mul
Multiply the two colors
src/film/color.rs:98
Method
neg
Negate the normal
src/linalg/normal.rs:102
Method
neg
Negate the point
src/linalg/point.rs:111
Method
neg
Negate the quaternion
src/linalg/quaternion.rs:158
Method
neg
Negate the vector
src/linalg/vector.rs:105
Method
neg
Negate the color channels
src/film/color.rs:138
Method
new
Create a new instance of some geometry in the scene
src/geometry/receiver.rs:22
Method
new
Create a new disk with some inner and outer radius
src/geometry/disk.rs:36
Method
new
Setup the differential geometry. Note that the normal will be computed using cross(dp_du, dp_dv)
src/geometry/differential_geometry.rs:32
Method
new
(positions: Vec<Arc<Vec<Point>>>, normals: Vec<Arc<Vec<Normal>>>, texcoords: Vec<Arc<Vec<Point>
src/geometry/animated_mesh.rs:45
Method
new
Create a new degenerate box
src/geometry/bbox.rs:19
Method
new
Construct the Intersection from a potential hit stored in a Option<DifferentialGeometry>. Returns None if `dg` is None or if the instance member of `d
src/geometry/intersection.rs:25
Method
new
Create a new rectangle with the desired width and height
src/geometry/rectangle.rs:32
Method
new
Create a new Mesh from the triangles described in the buffers passed This data could come from an OBJ file via [tobj](https://github.com/Twinklebear/t
src/geometry/mesh.rs:38
Method
new
Create a new BVH using a SAH construction algorithm which holds the scene geometry for some time period.
src/geometry/bvh.rs:34
Method
new
Create a sphere with the desired radius
src/geometry/sphere.rs:27
Method
new
Create a new Dielectric Fresnel term for the boundary between two objects. `eta_i`: refractive index of the material the light is coming from. `eta_t`
src/bxdf/fresnel.rs:46
Method
new
Create a new Lambertian BRDF with the desired reflective color property
src/bxdf/lambertian.rs:20
Method
new
Create a new Torrance Sparrow microfacet BRDF
src/bxdf/torrance_sparrow.rs:27
Method
new
Create a new transmissive microfacet BRDF
src/bxdf/microfacet_transmission.rs:27
Method
new
Create a MERL BRDF to use data loaded from a MERL BRDF data file
src/bxdf/merl.rs:31
Method
new
Create a new BSDF using the BxDFs passed to shade the differential geometry with refractive index `eta`
src/bxdf/bsdf.rs:38
Method
new
Create a specularly transmissive BTDF with the color and Fresnel term
src/bxdf/specular_transmission.rs:22
Method
new
Create a specularly reflective BRDF with the reflective color and Fresnel term
src/bxdf/specular_reflection.rs:22
Method
new
Create a new Oren-Nayar BRDF with the desired color and roughness `roughness` should be the variance of the Gaussian describing the microfacet distrib
src/bxdf/oren_nayar.rs:26
Method
new
Create a new Beckmann distribution with the desired width
src/bxdf/microfacet/beckmann.rs:19
Method
new
Create a new GGX distribution with the desired width
src/bxdf/microfacet/ggx.rs:20
Method
new
Initialize the normal and set values for x, y, z
src/linalg/normal.rs:17
Method
new
Construct a new keyframe transformation, The transform will be stored in a decomposed form, M = TRS.
src/linalg/keyframe.rs:22
Method
new
Create the matrix using the values passed
src/linalg/matrix4.rs:26
Method
new
Initialize the point and set values for x, y, z
src/linalg/point.rs:15
Method
new
Initialize the vector and set values for x, y, z
src/linalg/vector.rs:16
Method
new
Create a new ray from `o` heading in `d` with infinite length
src/linalg/ray.rs:26
Method
new
(val: f32)
src/texture/mod.rs:47
Method
new
(img: image::DynamicImage)
src/texture/image.rs:14
Method
new
(frames: Vec<(f32, Image)>)
src/texture/animated_image.rs:15
Method
new
Create a new multithreaded renderer which will use `num_threads` to render the image
src/exec/multithreaded.rs:26
Method
new
(out_path: PathBuf, scene_file: String, spp: usize, num_threads: u32, frame_info: FrameInfo, se
src/exec/mod.rs:31
Method
new
(scene: &str, frames: (usize, usize), block_start: usize, block_count: usize)
src/exec/distrib/mod.rs:67
Method
new
()
src/exec/distrib/master.rs:59
Method
new
Create a new metal material specifying the reflectance properties of the metal
src/material/metal.rs:44
Method
new
Create a new Matte material with the desired diffuse color and roughness
src/material/matte.rs:41
Method
new
Create the `RoughGlass` material with the desired color and index of refraction `reflect`: color of reflected light `transmit`: color of transmitted l
src/material/rough_glass.rs:47
Method
new
Create a new specular metal with the desired metal properties. `eta`: refractive index of the metal `k`: absorption coefficient of the metal
src/material/specular_metal.rs:41
Method
new
Create the glass material with the desired color and index of refraction `reflect`: color of reflected light `transmit`: color of transmitted light `e
src/material/glass.rs:43
Method
new
Create a new plastic material specifying the diffuse and glossy colors along with the roughness of the surface
src/material/plastic.rs:46
Method
new
Create a new path integrator with the min and max length desired for paths
src/integrator/path.rs:39
Method
new
Create a new Whitted integrator with the desired maximum recursion depth for rays
src/integrator/whitted.rs:37
Method
new
Create a new sample taking the 2D sample values from the slice
src/sampler/mod.rs:63
Method
new
Create a low discrepancy sampler to sample the image in `dim.0 * dim.1` sized blocks
src/sampler/ld.rs:21
Method
new
Create a block queue for the image with dimensions `img`. Panics if the image is not evenly broken into blocks of dimension `dim`
src/sampler/block_queue.rs:28
Method
new
Create a uniform sampler to sample the image in `dim.0 * dim.1` sized blocks
src/sampler/uniform.rs:17
Method
new
Create a low discrepancy sampler to sample the image in `dim.0 * dim.1` sized blocks
src/sampler/adaptive.rs:34
Method
new
(frames: usize, time: f32, start: usize, end: usize)
src/film/mod.rs:32
Method
new
(color: &Colorf, time: f32)
src/film/animated_color.rs:16
Method
new
Create the camera with some orientation in the world specified by `cam_world` and a perspective projection with `fov`. The render target dimensions `d
src/film/camera.rs:64
Method
new
Create an RGB color
src/film/color.rs:22
Method
new
(dimensions: (usize, usize))
src/film/image.rs:15
Method
new
(x: f32, y: f32, color: Colorf)
src/film/render_target.rs:23
Method
new
(w: f32, h: f32, b: f32, c: f32)
src/film/filter/mitchell_netravali.rs:22
Method
new
(w: f32, h: f32, alpha: f32)
src/film/filter/gaussian.rs:21
Method
non_specular
Get an EnumSet containing flags for all non-specular BxDFs
src/bxdf/mod.rs:75
Method
none
()
src/scene.rs:51
Method
normalized
Get a normalized copy of this vector
src/linalg/vector.rs:32
Method
num_bxdfs
Return the total number of BxDFs
src/bxdf/bsdf.rs:46
Method
offset
Find the position of the point relative to the box, with `min` being the origin
src/geometry/bbox.rs:63
Method
origin
Initialize a point to be all 0 values
src/linalg/point.rs:23
← previous
next →
301–400 of 483, ranked by callers