helliaca / vxct Goto Github PK
View Code? Open in Web Editor NEWOpenGL-based Implementation of Cyril Crassins Voxel Cone Tracing
OpenGL-based Implementation of Cyril Crassins Voxel Cone Tracing
Hi felicitations on your thesis.
Small suggestion for further improvement:
you might want to change the below
vec4 vol_sample(float diameter, vec3 location) {
float vlevel = log2(diameter * vox_size); // Current mipmap level
vlevel = min( MIPMAP_HARDCAP, vlevel );
vec3 pos_texturespace = (location + vec3(1.0f)) * 0.5f; // [-1,1] Coordinates to [0,1]
return textureLod(tex3D, pos_texturespace, vlevel); // Sample
}
to this
vec4 getVoxelSample(vec3 hit_point) {
vec3 hit_point_tex_space = (hit_point + 1.0) * 0.5; // [-1,1]->[0,1]
float mipmapLevel = textureQueryLod(voxelMap, hit_point_tex_space).x;
return textureLod(voxelMap, hit_point_tex_space, mipmapLevel);
}
This would get rid of MIPMAP...
preprocessor variable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.