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
↓ 2 callers
Method
occluded
Perform the occlusion test in the scene
src/light/mod.rs:30
↓ 2 callers
Function
part1_by1
! Provides utilities for 2D Morton code generation using Fabian Giesen's Morton ! code decoding functions, see [his post on Morton codes](https://fgie
src/sampler/morton.rs:5
↓ 2 callers
Function
partition
Re-orders elements in the range yielded by `it` based on `pred`. All elements that the predicate returns true for will be placed before all elements t
src/partition.rs:9
↓ 2 callers
Method
point
Create a point light at the origin that is transformed by `transform` to its location in the world
src/geometry/emitter.rs:109
↓ 2 callers
Function
power_heuristic
Power heuristic for multiple importance sampling for two functions being sampled, f & g where beta is hard-coded to be two following PBR & Veach - `n_
src/mc.rs:56
↓ 2 callers
Method
rebuild
Re-build the BVH for the time range passed
src/geometry/bvh.rs:61
↓ 2 callers
Function
refract
Compute the refraction of `w` entering surface with normal `n` where `eta` is the refractive index of the incident material divided by that of the exi
src/linalg/mod.rs:117
↓ 2 callers
Method
render
(&mut self, scene: &mut Scene, rt: &mut RenderTarget, config: &Config)
src/exec/multithreaded.rs:55
↓ 2 callers
Function
sample_1d
Generate a 1D pattern of low discrepancy samples to fill the slice sample values will be normalized between [0, 1]
src/sampler/ld.rs:85
↓ 2 callers
Function
sample_2d
Generate a 2D pattern of low discrepancy samples to fill the slice sample values will be normalized between [0, 1]
src/sampler/ld.rs:78
↓ 2 callers
Method
sample_incident
(&self, p: &Point, samples: &(f32, f32), time: f32)
src/geometry/emitter.rs:165
↓ 2 callers
Method
shadowing_masking
(&self, w_i: &Vector, w_o: &Vector, w_h: &Vector)
src/bxdf/microfacet/ggx.rs:47
↓ 2 callers
Function
spherical_dir
Compute the direction specified by `theta` and `phi` in the spherical coordinate system
src/linalg/mod.rs:55
↓ 2 callers
Function
spherical_theta
Compute the value of theta for the vector in the spherical coordinate system
src/linalg/mod.rs:66
↓ 2 callers
Method
to_matrix
Get the rotation transform described by this quaternion
src/linalg/quaternion.rs:65
↓ 2 callers
Method
to_srgb
Convert the linear RGB color to sRGB
src/film/color.rs:59
↓ 2 callers
Method
transform
Compute the transformation matrix for the animation at some time point using B-Spline interpolation.
src/linalg/animated_transform.rs:40
↓ 2 callers
Function
van_der_corput
Generate a scrambled Van der Corput sequence value as described by Kollig & Keller (2002) and in PBR method is specialized for base 2
src/sampler/ld.rs:97
↓ 2 callers
Method
weight_1d
Compute a 1d weight for the filter. Note that the Mitchell-Netravali filter is defined on [-2, 2] so x should be in this range
src/film/filter/mitchell_netravali.rs:35
↓ 2 callers
Method
weight_1d
(&self, x: f32, e: f32)
src/film/filter/gaussian.rs:27
↓ 1 callers
Method
active_camera
Get the active camera for the current frame
src/scene.rs:178
↓ 1 callers
Method
add_blocks
Add the blocks of RGBAf32 pixels to the image. It's assumed that the block information passed is equivalent to that returned by RenderTarget::get_bloc
src/film/image.rs:36
↓ 1 callers
Function
conductor
Compute the Fresnel term for a conductor given the incident angle and the material properties
src/bxdf/fresnel.rs:16
↓ 1 callers
Function
cos_sample_hemisphere
Sample a hemisphere using a cosine distribution to produce cosine weighted samples `samples` should be two random samples in range [0, 1) directions r
src/mc.rs:11
↓ 1 callers
Function
dielectric
Compute the Fresnel term for a dielectric material given the incident and transmission angles and refractive indices
src/bxdf/fresnel.rs:10
↓ 1 callers
Method
estimate_direct
Estimate the direct light contribution to the surface being shaded by the light using multiple importance sampling - `w_o` outgoing direction of the
src/integrator/mod.rs:122
↓ 1 callers
Method
eval
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/torrance_sparrow.rs:40
↓ 1 callers
Method
eval
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/microfacet_transmission.rs:65
↓ 1 callers
Method
face_forward
Return a normal facing along the same direction as v
src/linalg/normal.rs:38
↓ 1 callers
Method
fast_intersect
Optimized ray-box intersection test, for use in the BVH traversal where we have pre-computed the ray's inverse direction and which directions are nega
src/geometry/bbox.rs:75
↓ 1 callers
Method
from_shading
Transform the vectro from shading space to world space
src/bxdf/bsdf.rs:57
↓ 1 callers
Method
get_color
(&self, x: u32, y: u32)
src/texture/image.rs:23
↓ 1 callers
Method
get_float
(&self, x: u32, y: u32)
src/texture/image.rs:17
↓ 1 callers
Function
get_instructions
()
src/exec/distrib/worker.rs:59
↓ 1 callers
Method
get_rendered_blocks
Get the blocks that have had pixels written too them. Returns the size of each block, a list of block positions in pixels and then pixels for the bloc
src/film/render_target.rs:215
↓ 1 callers
Method
get_samples_2d
(&mut self, samples: &mut [(f32, f32)], rng: &mut StdRng)
src/sampler/adaptive.rs:107
↓ 1 callers
Method
get_srgb8
Convert the Image to sRGB8 format and return it
src/film/image.rs:52
↓ 1 callers
Method
get_transform
Get the transform to place the emitter into world space
src/geometry/emitter.rs:144
↓ 1 callers
Method
has_samples
(&self)
src/sampler/uniform.rs:47
↓ 1 callers
Method
has_samples
(&self)
src/sampler/adaptive.rs:119
↓ 1 callers
Method
intersect
(&self, ray: &mut Ray)
src/geometry/disk.rs:42
↓ 1 callers
Method
intersect
(&self, ray: &mut Ray)
src/geometry/rectangle.rs:38
↓ 1 callers
Method
intersect
(&self, ray: &mut Ray)
src/geometry/sphere.rs:33
↓ 1 callers
Method
inv_height
(&self)
src/film/filter/gaussian.rs:39
↓ 1 callers
Method
inv_width
(&self)
src/film/filter/gaussian.rs:37
↓ 1 callers
Method
is_animated
Check if the transform is actually animated
src/linalg/animated_transform.rs:73
↓ 1 callers
Method
length
Compute the length of the vector
src/linalg/vector.rs:28
↓ 1 callers
Method
length_sqr
Compute the squared length of the vector
src/linalg/vector.rs:24
↓ 1 callers
Method
lerp
Compute the point in the box at some t value along each axis
src/geometry/bbox.rs:58
↓ 1 callers
Function
load_animated_color
Load an animated color from the JSON element passed. Returns None if the element did not contain a valid color
src/scene.rs:722
↓ 1 callers
Function
load_camera
Load the camera described by the JSON value passed. Returns the camera along with the number of samples to take per pixel and the scene dimensions. Pa
src/scene.rs:251
↓ 1 callers
Function
load_cameras
Load the cameras or single camera specified for this scene
src/scene.rs:231
↓ 1 callers
Function
load_film
Load the film described by the JSON value passed. Returns the render target along with the image dimensions and samples per pixel
src/scene.rs:185
↓ 1 callers
Function
load_filter
Load the reconstruction filter described by the JSON value passed
src/scene.rs:208
↓ 1 callers
Function
load_geometry
Load the geometry specified by the JSON value. Will re-use any already loaded meshes and will place newly loaded meshees in the mesh cache.
src/scene.rs:584
↓ 1 callers
Function
load_integrator
Load the integrator described by the JSON value passed. Return the integrator or panics if it's incorrectly specified
src/scene.rs:297
↓ 1 callers
Function
load_materials
Load the array of materials used in the scene, panics if a material is specified incorrectly. The path to the directory containing the scene file is r
src/scene.rs:404
↓ 1 callers
Function
load_objects
Loads the array of objects in the scene, assigning them materials from the materials map. Will panic if an incorrectly specified object is found.
src/scene.rs:515
↓ 1 callers
Function
load_sampleable_geometry
Load the sampleable geometry specified by the JSON value. Will panic if the geometry specified is not sampleable.
src/scene.rs:632
↓ 1 callers
Function
load_textures
(path: &Path, elem: &Value)
src/scene.rs:317
↓ 1 callers
Function
master_node
(args: Args)
src/main.rs:111
↓ 1 callers
Method
matching_at
Get the `i`th BxDF that matches the flags passed. There should not be fewer than i BxDFs that match the flags
src/bxdf/bsdf.rs:128
↓ 1 callers
Method
max_extent
Compute the axis along which the box is longest
src/geometry/bbox.rs:47
↓ 1 callers
Method
needs_supersampling
Determine if more samples need to be taken for the pixel currently sampled with the set of samples passed. This is done by simply looking at the contr
src/sampler/adaptive.rs:54
↓ 1 callers
Method
normal_distribution
(&self, w_h: &Vector)
src/bxdf/microfacet/beckmann.rs:26
↓ 1 callers
Method
num_matching
Return the number of BxDFs matching the flags
src/bxdf/bsdf.rs:48
↓ 1 callers
Method
pdf
(&self, p: &Point, w_i: &Vector, time: f32)
src/geometry/emitter.rs:193
↓ 1 callers
Method
pdf
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/torrance_sparrow.rs:71
↓ 1 callers
Method
pdf
Compute the pdf of sampling the pair of directions passed for this BxDF
src/bxdf/mod.rs:115
↓ 1 callers
Method
pdf
(&self, w_o: &Vector, w_i: &Vector)
src/bxdf/microfacet_transmission.rs:100
↓ 1 callers
Method
read_worker_buffer
Read results from a worker and accumulate this data in its worker buffer. Returns true if we've read the data being sent and can decode the buffer
src/exec/distrib/master.rs:166
↓ 1 callers
Function
reflect
Compute the reflection of `w` about `v`, both vectors should be normalized
src/linalg/mod.rs:110
↓ 1 callers
Method
render_parallel
Launch a rendering job in parallel across the threads and wait for it to finish
src/exec/multithreaded.rs:30
↓ 1 callers
Method
report_results
(&mut self, samples: &[ImageSample])
src/sampler/adaptive.rs:127
↓ 1 callers
Method
sample
(&self, _: &Point, samples: &(f32, f32))
src/geometry/disk.rs:91
↓ 1 callers
Function
sample_02
Generate a sample from a scrambled (0, 2) sequence
src/sampler/ld.rs:91
↓ 1 callers
Method
sample_one_light
Uniformly sample the contribution of a randomly chosen light in the scene to the illumination of this BSDF at the point - `w_o` outgoing direction of
src/integrator/mod.rs:106
↓ 1 callers
Method
sample_uniform
(&self, samples: &(f32, f32))
src/geometry/disk.rs:85
↓ 1 callers
Method
sample_uniform
Uniform sampling for a rect is simple: just scale the two samples into the rectangle's space and return them as the x,y coordinates of the point chose
src/geometry/rectangle.rs:77
↓ 1 callers
Method
sample_uniform
(&self, samples: &(f32, f32))
src/geometry/sphere.rs:92
↓ 1 callers
Method
save_results
Read a result frame from a worker and save it into the list of frames we're collecting from all workers. Will save out the final render if all workers
src/exec/distrib/master.rs:124
↓ 1 callers
Method
send_results
Send our blocks back to the master
src/exec/distrib/worker.rs:49
↓ 1 callers
Method
set_transform
Set the transform to place the emitter into world space
src/geometry/emitter.rs:148
↓ 1 callers
Method
shutter_time
Get the time that the shutter opens and closes at
src/film/camera.rs:146
↓ 1 callers
Function
single_node_render
(args: Args)
src/main.rs:56
↓ 1 callers
Function
slerp
Use spherical linear interpolation to interpolate between the two quaternions
src/linalg/quaternion.rs:101
↓ 1 callers
Function
sobol
Generate a scrambled Sobol' sequence value as described by Kollig & Keller (2002) and in PBR method is specialized for base 2
src/sampler/ld.rs:109
↓ 1 callers
Function
solve_quadratic
Try to solve the quadratic equation `a*t^2 + b*t + c = 0` and return the two real roots if a solution exists
src/linalg/mod.rs:78
↓ 1 callers
Method
specular_reflection
Compute the color of specularly reflecting light off the intersection
src/integrator/mod.rs:49
↓ 1 callers
Method
specular_transmission
Compute the color of specularly transmitted light through the intersection
src/integrator/mod.rs:74
↓ 1 callers
Function
spherical_phi
Compute the value of phi for the vector in the spherical coordinate system
src/linalg/mod.rs:70
↓ 1 callers
Method
surface_area
(&self)
src/geometry/disk.rs:94
↓ 1 callers
Method
surface_area
Compute the sphere's surface area
src/geometry/rectangle.rs:85
↓ 1 callers
Method
surface_area
Compute the sphere's surface area
src/geometry/sphere.rs:126
↓ 1 callers
Function
tan_theta_sqr
Compute the value of tan theta^2 for a vector in shading space
src/bxdf/mod.rs:142
↓ 1 callers
Function
thread_work
(spp: usize, queue: &BlockQueue, scene: &Scene, target: &RenderTarget, light_list: &[&Emitter])
src/exec/multithreaded.rs:72
↓ 1 callers
Function
uniform_cone_pdf
Return the PDF for uniformly sampling a cone with some max solid angle
src/mc.rs:62
↓ 1 callers
Function
uniform_sample_cone_frame
Uniformly sample a direction in a cone with max angle `cos_theta_max` where the cone looks down the `w_z` vector provided, with `w_x`, `w_y` forming t
src/mc.rs:76
↓ 1 callers
Function
uniform_sample_sphere
Uniformly sample a direction on the unit sphere about the origin
src/mc.rs:84
↓ 1 callers
Method
update_frame
Update the camera's shutter open/close time for this new frame
src/film/camera.rs:127
← previous
next →
101–200 of 483, ranked by callers