1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Shader Fix Hack (#625)

This commit is contained in:
Darshan Phaldesai 2021-12-30 21:35:28 +05:30 committed by GitHub
parent 95ae81eef1
commit 51288148ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@ signal done
func generate_image(img: Image, shader: Shader, params: Dictionary, size: Vector2) -> void:
img.unlock()
shader.code = shader.code.replace("unshaded", "unshaded, blend_premul_alpha")
var vp := VisualServer.viewport_create()
var canvas := VisualServer.canvas_create()
VisualServer.viewport_attach_canvas(vp, canvas)