Ensure shadow material and mesh are not used with wireframe mode
And in the Compatibility renderer actually use the wireframe render mode
This commit is contained in:
parent
cb411fa960
commit
90b4b48b5a
5 changed files with 8 additions and 5 deletions
|
|
@ -3314,7 +3314,8 @@
|
|||
<return type="void" />
|
||||
<param index="0" name="generate" type="bool" />
|
||||
<description>
|
||||
This method is currently unimplemented and does nothing if called with [param generate] set to [code]true[/code].
|
||||
If [param generate] is [code]true[/code], generates debug wireframes for all meshes that are loaded when using the Compatibility renderer. By default, the engine does not generate debug wireframes at runtime, since they slow down loading of assets and take up VRAM.
|
||||
[b]Note:[/b] You must call this method before loading any meshes when using the Compatibility renderer, otherwise wireframes will not be used.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_default_clear_color">
|
||||
|
|
@ -5047,6 +5048,7 @@
|
|||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_WIREFRAME" value="4" enum="ViewportDebugDraw">
|
||||
Debug draw draws objects in wireframe.
|
||||
[b]Note:[/b] [method set_debug_generate_wireframes] must be called before loading any meshes for wireframes to be visible when using the Compatibility renderer.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER" value="5" enum="ViewportDebugDraw">
|
||||
Normal buffer is drawn instead of regular scene so you can see the per-pixel normals that will be used by post-processing effects.
|
||||
|
|
|
|||
|
|
@ -555,6 +555,7 @@
|
|||
</constant>
|
||||
<constant name="DEBUG_DRAW_WIREFRAME" value="4" enum="DebugDraw">
|
||||
Objects are displayed as wireframe models.
|
||||
[b]Note:[/b] [method RenderingServer.set_debug_generate_wireframes] must be called before loading any meshes for wireframes to be visible when using the Compatibility renderer.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_NORMAL_BUFFER" value="5" enum="DebugDraw">
|
||||
Objects are displayed without lighting information and their textures replaced by normal mapping.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue