Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function DrawBufferRects()
- Local X:Int, Y:Int, B_W:Int, B_H:Int, B_C:Int, C:Int
- Local LSCALE:Int = LIGHT_SCALE
- B_C = BUFFER_QUALITY
- B_W = (BUFFER_WIDTH - 1)
- B_H = (BUFFER_HEIGHT - 1)
- For X = 0 To B_W Step 1
- For Y = 0 To B_H Step 1
- BUFFER[X,Y] = ShadowsEngine.CPPShadows.GetPixel(X,Y)
- C = RGBToGrey(BUFFER[X,Y])
- SetColor(C,C,C)
- DrawRect(X*B_C,Y*B_C,B_C,B_C)
- Next
- Next
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement