ShatteredReality b4c73f4888 Fix README links to asset library (#1078) | vor 5 Monaten | |
---|---|---|
.. | ||
screenshots | vor 1 Jahr | |
2d_in_3d.gd | vor 6 Monaten | |
2d_in_3d.tscn | vor 6 Monaten | |
README.md | vor 5 Monaten | |
ball.png | vor 4 Jahren | |
ball.png.import | vor 10 Monaten | |
default_env.tres | vor 2 Jahren | |
icon.webp | vor 1 Jahr | |
icon.webp.import | vor 1 Jahr | |
left_pallete.png | vor 4 Jahren | |
left_pallete.png.import | vor 10 Monaten | |
pong.gd | vor 6 Monaten | |
project.godot | vor 6 Monaten | |
right_pallete.png | vor 4 Jahren | |
right_pallete.png.import | vor 10 Monaten | |
separator.png | vor 4 Jahren | |
separator.png.import | vor 10 Monaten |
A demo showing how a 2D scene can be shown within a 3D scene using viewports.
Language: GDScript
Renderer: Compatibility
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2803
The Pong game is rendered to a custom
Viewport
node rather than the main Viewport. In the code,
get_texture()
is called on the Viewport to get a
ViewportTexture
,
which is then assigned to the quad's material's albedo texture.