Skip to content

Conversation

@wongwill86
Copy link
Owner

To enable addressing of peta scale data sizes, we need virtual addressing of coordinates with a cache.
This is an incomplete PR for review and suggestions.
Please don't merge

vec3 positionPageDirectory = positionVoxel / BLOCK_SIZE_PAGE / BLOCK_SIZE_VOXEL;

// Use bits to index into page directory
return textureLod(pageDirectory, positionPageDirectory / TOTAL_SIZE_PAGE_DIRECTORY, 0.0);
Copy link
Collaborator

@nkemnitz nkemnitz Mar 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is another function texelFetch(sampler, p, lod) that takes an ivec of unnormalized coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants