Advertisement
imk0tter

RASTERIZATION

Apr 3rd, 2024
62
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. ; We have a projected dimension that has a resolution of INFINITY
  2.  
  3. DIMENSION = INFINITY
  4.  
  5. ; We must project a rasterization dimension that is a factor of N times larger than the projected dimension
  6. ; where N is the number of CALLS PER INSTANCE. The rasterization dimension has a loss of LIMIT(1) per M units,
  7. ; where M is the number of INSTANCES
  8.  
  9. CPI = INFINITY
  10. INSTANCES = INFINITY
  11.  
  12. RASTERIZATION_FACTOR = CPI * INSTANCES
  13.  
  14. ; Now we have to get the input relative to the rasterization plane
  15.  
  16. CURRENT_INPUT = DIMENSION * RASTERIZATION_FACTOR * INPUT
  17.  
  18. ; Now we update the global that stores the total input of the rasterization dimension
  19. TOTAL_INPUT += CURRENT_INPUT
  20.  
  21. ; Now we take the rasterization dimension and rasterize it to be of scale of the projected dimension
  22. INPUT_RASTERIZED = TOTAL_INPUT / RASTERIZATION_FACTOR
Advertisement
Comments
  • imk0tter
    32 days
    1
    # text 0.86 KB | 0 0
    1. ; We have a projected dimension that has a resolution of INFINITY
    2.  
    3. DIMENSION = INFINITY
    4.  
    5. ; We must project a rasterization dimension that is a factor of N times larger than the projected dimension
    6. ; where N is the number of CALLS PER INSTANCE. The rasterization dimension has a loss of LIMIT(1) per M units,
    7. ; where M is the number of INSTANCES
    8.  
    9. CPI = INFINITY
    10. INSTANCES = INFINITY
    11.  
    12. RASTERIZATION_FACTOR = CPI * INSTANCES
    13.  
    14. ; Now we have to get the input relative to the rasterization plane
    15.  
    16. CURRENT_INPUT = DIMENSION * RASTERIZATION_FACTOR * INPUT
    17.  
    18. ; Now we update the global that stores the total input of the rasterization dimension
    19. TOTAL_INPUT = (TOTAL_INPUT + CURRENT_INPUT) % RASTERIZATION_FACTOR
    20.  
    21. ; Now we take the rasterization dimension and rasterize it to be of scale of the projected dimension
    22. INPUT_RASTERIZED = TOTAL_INPUT / RASTERIZATION_FACTOR
    23.  
    24.  
Add Comment
Please, Sign In to add comment
Advertisement