StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
StackGenVis/frontend/node_modules/glslify-bundle/fixtures/complex.glsl

30 lines
574 B

4 years ago
precision mediump float;
#pragma glslify: RayResult = require('./complex-ray-result')
#pragma glslify: Ray = require('./complex-ray')
RayResult doModel(vec3 p);
#pragma glslify: march = require('./complex-march', map = doModel)
RayResult doModel(vec3 p) {
float d = length(p);
float id = 1.0;
return RayResult(d, id, true);
}
void main() {
vec3 color = vec3(0);
vec3 rd = normalize(vec3(1));
vec3 ro = vec3(0);
RayResult t = march(Ray(ro, rd));
if (t.hit) {
color = vec3(t.d);
}
gl_FragColor = vec4(color, 1);
}