- Jul 30, 2017
- 2,130
- 3,346
How do you return all displayable's, on layer master, as a composite texture or similar, to be passed to a shader? There's got to be a quick and easy way to do this, without having to manually build a composite image of the entire scene; background & characters, etc.
I'm looking for a function like this or similar:
The above functionality may look like something else.
The goal is to pass the current scene to a shader like this, but without having to manually build the scene via composite image:
I'm looking for a function like this or similar:
Code:
# returns all displayables, minus the UI, as a composite texture which can be passed to shader
Image dynamic_image_for_screen_shader = renpy.layer["master"].returnCompositeTextureImage()
The goal is to pass the current scene to a shader like this, but without having to manually build the scene via composite image:
Code:
# i shouldn't have to do this, isn't there a renpy way to get current scene as texture?
image dynamic_current_scene_image = Composite(
(1920, 1080),
(dynamicImg01_x, dynamicImg01_y), dynamicImg01,
(dynamicImg02_x, dynamicImg02_y), dynamicImg02)
label test():
show screen_shader_combined_image_of_scene:
shader("photoshop.special_effect_05")
Model().child("dynamic_current_scene_image ").child("images/soft_light_overlay_effect05.png")
"Screen Shader Applied"
hide screen_shader_combined_image_of_scene
"Black Screen"
Last edited: