Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Soulghost/Rust101
/ functions
Functions
153 in github.com/Soulghost/Rust101
⨍
Functions
153
◇
Types & classes
42
↓ 36 callers
Function
max
(a: f64, b: f64)
ray_marching/src/math/mod.rs:292
↓ 24 callers
Function
min
(a: f64, b: f64)
ray_marching/src/math/mod.rs:288
↓ 14 callers
Method
dot
(&self, rhs: &Vector3f)
ray_marching/src/math/mod.rs:70
↓ 13 callers
Method
clone
(&self)
path_tracing/src/bvh/bounds.rs:98
↓ 12 callers
Method
length
(&self)
ray_marching/src/math/mod.rs:66
↓ 10 callers
Method
clone
(&self)
path_tracing/src/mesh/triangle.rs:115
↓ 10 callers
Method
dot
(&self, rhs: &Vector3f)
path_tracing/src/math/vector.rs:52
↓ 9 callers
Method
get_bounds
(&self)
path_tracing/src/mesh/model.rs:96
↓ 7 callers
Function
max
(a: f64, b: f64)
ray_marching/src/material/pbr.rs:80
↓ 7 callers
Method
shape_sdf
(&self, p: &Vector3f)
ray_marching/src/sdf/mod.rs:355
↓ 6 callers
Method
add
(&mut self, model: Arc<Model>)
path_tracing/src/scene/scene.rs:60
↓ 6 callers
Method
center
(&self)
path_tracing/src/bvh/bounds.rs:39
↓ 5 callers
Method
clone
(&self)
path_tracing/src/math/vector.rs:216
↓ 5 callers
Method
cross
(&self, rhs: &Vector3f)
path_tracing/src/math/vector.rs:56
↓ 5 callers
Method
intersect
(&self, ray: &Ray)
path_tracing/src/bvh/bvh.rs:27
↓ 5 callers
Method
normalize
(&self)
ray_marching/src/math/mod.rs:56
↓ 4 callers
Method
add_leaf_node
( &'a self, shape: Box<dyn Shape>, material: Rc<PBRMaterial>, )
ray_marching/src/sdf/mod.rs:150
↓ 4 callers
Method
add_root_node
(&'a self, node: &'a ShapeOp<'a>)
ray_marching/src/sdf/mod.rs:182
↓ 4 callers
Method
get_area
(&self)
path_tracing/src/mesh/model.rs:92
↓ 4 callers
Method
has_emission
(&self)
path_tracing/src/material/material.rs:60
↓ 4 callers
Method
normalize
(&self)
path_tracing/src/math/vector.rs:38
↓ 3 callers
Method
build
(&mut self)
path_tracing/src/bvh/bvh.rs:22
↓ 3 callers
Method
encode_color_component
(&self, c: f64)
path_tracing/src/renderer/texture.rs:69
↓ 3 callers
Method
encode_color_component
(&self, c: f64)
ray_marching/src/renderer/texture.rs:88
↓ 3 callers
Function
gamma
(c: f64)
ray_marching/src/renderer/texture.rs:95
↓ 3 callers
Method
sample
(&self)
path_tracing/src/bvh/bvh.rs:34
↓ 3 callers
Method
sdf
(&'a self, p: &Vector3f)
ray_marching/src/sdf/mod.rs:198
↓ 2 callers
Method
add_node
( &'a self, shape: Box<dyn Shape>, material: Rc<PBRMaterial>, op: ShapeOpType,
ray_marching/src/sdf/mod.rs:165
↓ 2 callers
Method
eval
(&self, t: f64)
path_tracing/src/domain/domain.rs:33
↓ 2 callers
Method
eval
(&self, t: f64)
ray_marching/src/domain/mod.rs:23
↓ 2 callers
Function
geometry_schlick_ggx
(n_dot_v: f64, roughness: f64)
ray_marching/src/material/pbr.rs:59
↓ 2 callers
Method
get_emission
(&self)
path_tracing/src/material/material.rs:64
↓ 2 callers
Method
get_render_target
(&mut self)
path_tracing/src/renderer/framebuffer.rs:14
↓ 2 callers
Method
get_render_target
(&mut self)
ray_marching/src/renderer/framebuffer.rs:14
↓ 2 callers
Method
length
(&self)
path_tracing/src/math/vector.rs:48
↓ 2 callers
Function
lerp
(x: T, y: T, a: f64)
ray_marching/src/math/mod.rs:281
↓ 2 callers
Method
ray_march
(&'a self, ray: &Ray, max_dist: f64)
ray_marching/src/sdf/mod.rs:301
↓ 2 callers
Method
union
(&mut self, b: &Bounds3)
path_tracing/src/bvh/bounds.rs:29
↓ 1 callers
Method
_cast_ray
(&'a self, ray: &Ray, depth: u32, _source_op: Option<&'a ShapeOp<'a>>)
ray_marching/src/sdf/mod.rs:221
↓ 1 callers
Function
add_models_to_scene
(scene: &'a Scene<'a>)
ray_marching/src/main.rs:75
↓ 1 callers
Method
build_bvh
(&mut self)
path_tracing/src/scene/scene.rs:64
↓ 1 callers
Method
cast_ray
(&self, ray: &Ray)
path_tracing/src/scene/scene.rs:74
↓ 1 callers
Method
cast_ray
(&'a self, origin_ray: &Ray)
ray_marching/src/sdf/mod.rs:210
↓ 1 callers
Method
compensation
(&self)
path_tracing/src/scene/scene.rs:22
↓ 1 callers
Method
determine
(&self, depth: usize)
path_tracing/src/scene/scene.rs:13
↓ 1 callers
Method
diagonal
(&self)
path_tracing/src/bvh/bounds.rs:43
↓ 1 callers
Method
distance_sq
(&self, rhs: &Vector3f)
path_tracing/src/math/vector.rs:64
↓ 1 callers
Method
dump_to_file
(&self, path: &str)
path_tracing/src/renderer/texture.rs:51
↓ 1 callers
Method
dump_to_file
(&self, path: &str)
ray_marching/src/renderer/texture.rs:70
↓ 1 callers
Function
fresnel_schlick
(cos_theta: f64, f0: &Vector3f)
ray_marching/src/material/pbr.rs:75
↓ 1 callers
Function
geometry_simth
(normal: &Vector3f, view: &Vector3f, light: &Vector3f, roughness: f64)
ray_marching/src/material/pbr.rs:67
↓ 1 callers
Method
get_buffer
(&self, need_gamma: bool)
ray_marching/src/renderer/texture.rs:41
↓ 1 callers
Method
is_ground
(&'a self, node: &'a ShapeOp<'a>)
ray_marching/src/sdf/mod.rs:190
↓ 1 callers
Method
load
(&mut self, path: &str)
path_tracing/src/mesh/model.rs:33
↓ 1 callers
Method
max_extent_axis
(&self)
path_tracing/src/bvh/bounds.rs:47
↓ 1 callers
Method
normal
(&'a self, hit: &HitResult, p: &Vector3f)
ray_marching/src/sdf/mod.rs:324
↓ 1 callers
Function
normal_distribution_ggx
(normal: &Vector3f, half: &Vector3f, roughness: f64)
ray_marching/src/material/pbr.rs:48
↓ 1 callers
Function
pbr_lighting
( hit: &'a HitResult<'a>, view: &Vector3f, normal: &Vector3f, light: &Vector3f, light_inte
ray_marching/src/material/pbr.rs:11
↓ 1 callers
Method
pdf
(&self, _wi: &Vector3f, wo: &Vector3f, normal: &Vector3f)
path_tracing/src/material/material.rs:32
↓ 1 callers
Function
render
(show_window: bool)
ray_marching/src/main.rs:20
↓ 1 callers
Method
render
(&mut self, scene: Arc<Scene>, n_threads: u32)
path_tracing/src/renderer/rendering.rs:28
↓ 1 callers
Method
render
( &mut self, eye: Vector3f, rotation_degrees: Vector3f, scene: &'a Scene<'a>,
ray_marching/src/renderer/rendering.rs:18
↓ 1 callers
Method
sample
(&self, _wi: &Vector3f, normal: &Vector3f)
path_tracing/src/material/material.rs:10
↓ 1 callers
Method
sample_light
(&self)
path_tracing/src/scene/scene.rs:137
↓ 1 callers
Method
set
(&mut self, x: u32, y: u32, color: Vector3f, mode: RenderTextureSetMode)
path_tracing/src/renderer/texture.rs:27
↓ 1 callers
Method
set
(&mut self, x: u32, y: u32, color: Vector3f, mode: RenderTextureSetMode)
ray_marching/src/renderer/texture.rs:26
↓ 1 callers
Method
set_ground
(&'a self, node: &'a ShapeOp<'a>)
ray_marching/src/sdf/mod.rs:186
↓ 1 callers
Method
shade
(&self, hit: &Intersection, wo: &Vector3f, depth: usize)
path_tracing/src/scene/scene.rs:86
↓ 1 callers
Method
union_point
(&mut self, p: &Vector3f)
path_tracing/src/bvh/bounds.rs:34
Method
add
(self, rhs: Vector3f)
path_tracing/src/math/vector.rs:138
Method
add
(self, rhs: Vector3f)
ray_marching/src/math/mod.rs:156
Method
add_assign
(&mut self, rhs: Self)
path_tracing/src/math/vector.rs:160
Method
add_assign
(&mut self, rhs: Self)
ray_marching/src/math/mod.rs:178
Method
build_recursively
(mut primitives: Vec<Arc<dyn Object>>)
path_tracing/src/bvh/bvh.rs:42
Method
cross
(&self, rhs: &Vector3f)
ray_marching/src/math/mod.rs:74
Method
default
()
path_tracing/src/renderer/rendering.rs:101
Method
default
()
path_tracing/src/domain/domain.rs:65
Method
default
()
ray_marching/src/renderer/rendering.rs:98
Method
default
()
ray_marching/src/sdf/mod.rs:114
Method
degree
(radian: f64)
path_tracing/src/math/mod.rs:13
Method
degree
(radian: f64)
ray_marching/src/math/mod.rs:257
Method
distance_sq
(&self, rhs: &Vector3f)
ray_marching/src/math/mod.rs:82
Method
div
(self, rhs: T)
path_tracing/src/math/vector.rs:109
Method
div
(self, rhs: T)
ray_marching/src/math/mod.rs:127
Method
eval
(&self, _ws: &Vector3f, wo: &Vector3f, normal: &Vector3f)
path_tracing/src/material/material.rs:68
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
path_tracing/src/bvh/bounds.rs:104
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
path_tracing/src/math/vector.rs:226
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
ray_marching/src/sdf/primitive.rs:26
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
ray_marching/src/sdf/mod.rs:24
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
ray_marching/src/math/mod.rs:246
Method
from_points
(p1: &Vector3f, p2: &Vector3f)
path_tracing/src/bvh/bounds.rs:14
Method
get_albedo
(&self)
path_tracing/src/material/material.rs:56
Method
get_area
(&self)
path_tracing/src/mesh/triangle.rs:56
Method
get_bounds
(&self)
path_tracing/src/mesh/triangle.rs:50
Method
get_color_attachment
(&mut self)
path_tracing/src/renderer/texture.rs:39
Method
get_color_attachment
(&mut self)
ray_marching/src/renderer/texture.rs:37
Method
get_height
(&self)
path_tracing/src/renderer/texture.rs:47
Method
get_height
(&self)
ray_marching/src/renderer/texture.rs:66
Method
get_name
for debug
path_tracing/src/mesh/triangle.rs:46
Method
get_name
(&self)
path_tracing/src/mesh/object.rs:6
next →
1–100 of 153, ranked by callers