171 |
rect = 1 |
rect = 1 |
172 |
targ = "TEXTURE_RECTANGLE_NV" |
targ = "TEXTURE_RECTANGLE_NV" |
173 |
if directDepthCopy: |
if directDepthCopy: |
174 |
depthTexture.loadNull2D("TEXTURE_RECTANGLE_NV", 0, "DEPTH_COMPONENT24", |
depthTexture.loadNull2D(targ, 0, "DEPTH_COMPONENT24", |
175 |
width, height, 0, "DEPTH_COMPONENT", |
width, height, 0, "DEPTH_COMPONENT", "INT") |
|
"INT") |
|
176 |
else: |
else: |
177 |
depthTexture.loadNull2D("TEXTURE_RECTANGLE_NV", 0, "RGBA8", |
depthTexture.loadNull2D(targ, 0, "RGBA8", |
178 |
width, height, 0, "BGRA", |
width, height, 0, "BGRA", "INT") |
|
"UNSIGNED_INT_8_8_8_8") |
|
179 |
|
|
180 |
tmpTexture.loadNull2D("TEXTURE_RECTANGLE_NV", 0, "RGB8", |
tmpTexture.loadNull2D(targ, 0, "RGB8", |
181 |
width, height, 0, "RGB", |
width, height, 0, "RGB", "INT") |
182 |
"INT") |
tmpTexture.setTexParameter(targ, "TEXTURE_MIN_FILTER", "LINEAR") |
183 |
|
tmpTexture.setTexParameter(targ, "TEXTURE_MAG_FILTER", "LINEAR") |
184 |
|
|
185 |
depthTexture.setTexParameter(targ, "TEXTURE_MIN_FILTER", "LINEAR") |
depthTexture.setTexParameter(targ, "TEXTURE_MIN_FILTER", "LINEAR") |
186 |
depthTexture.setTexParameter(targ, "TEXTURE_MAG_FILTER", "LINEAR") |
depthTexture.setTexParameter(targ, "TEXTURE_MAG_FILTER", "LINEAR") |