|
608 | 608 | </constant> |
609 | 609 | <constant name="DEBUG_DRAW_LIGHTING" value="2" enum="DebugDraw"> |
610 | 610 | Objects are displayed without textures and only with lighting information. |
| 611 | + [b]Note:[/b] When using this debug draw mode, custom shaders are ignored since all materials in the scene temporarily use a debug material. This means the result from custom shader functions (such as vertex displacement) won't be visible anymore when using this debug draw mode. |
611 | 612 | </constant> |
612 | 613 | <constant name="DEBUG_DRAW_OVERDRAW" value="3" enum="DebugDraw"> |
613 | 614 | Objects are displayed semi-transparent with additive blending so you can see where they are drawing over top of one another. A higher overdraw means you are wasting performance on drawing pixels that are being hidden behind others. |
| 615 | + [b]Note:[/b] When using this debug draw mode, custom shaders are ignored since all materials in the scene temporarily use a debug material. This means the result from custom shader functions (such as vertex displacement) won't be visible anymore when using this debug draw mode. |
614 | 616 | </constant> |
615 | 617 | <constant name="DEBUG_DRAW_WIREFRAME" value="4" enum="DebugDraw"> |
616 | 618 | Objects are displayed as wireframe models. |
617 | 619 | [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. |
618 | 620 | </constant> |
619 | 621 | <constant name="DEBUG_DRAW_NORMAL_BUFFER" value="5" enum="DebugDraw"> |
620 | 622 | Objects are displayed without lighting information and their textures replaced by normal mapping. |
| 623 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
621 | 624 | </constant> |
622 | 625 | <constant name="DEBUG_DRAW_VOXEL_GI_ALBEDO" value="6" enum="DebugDraw"> |
623 | | - Objects are displayed with only the albedo value from [VoxelGI]s. |
| 626 | + Objects are displayed with only the albedo value from [VoxelGI]s. Requires at least one visible [VoxelGI] node that has been baked to have a visible effect. |
| 627 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
624 | 628 | </constant> |
625 | 629 | <constant name="DEBUG_DRAW_VOXEL_GI_LIGHTING" value="7" enum="DebugDraw"> |
626 | | - Objects are displayed with only the lighting value from [VoxelGI]s. |
| 630 | + Objects are displayed with only the lighting value from [VoxelGI]s. Requires at least one visible [VoxelGI] node that has been baked to have a visible effect. |
| 631 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
627 | 632 | </constant> |
628 | 633 | <constant name="DEBUG_DRAW_VOXEL_GI_EMISSION" value="8" enum="DebugDraw"> |
629 | | - Objects are displayed with only the emission color from [VoxelGI]s. |
| 634 | + Objects are displayed with only the emission color from [VoxelGI]s. Requires at least one visible [VoxelGI] node that has been baked to have a visible effect. |
| 635 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
630 | 636 | </constant> |
631 | 637 | <constant name="DEBUG_DRAW_SHADOW_ATLAS" value="9" enum="DebugDraw"> |
632 | 638 | Draws the shadow atlas that stores shadows from [OmniLight3D]s and [SpotLight3D]s in the upper left quadrant of the [Viewport]. |
|
636 | 642 | </constant> |
637 | 643 | <constant name="DEBUG_DRAW_SCENE_LUMINANCE" value="11" enum="DebugDraw"> |
638 | 644 | Draws the scene luminance buffer (if available) in the upper left quadrant of the [Viewport]. |
| 645 | + [b]Note:[/b] Only supported when using the Forward+ or Mobile rendering methods. |
639 | 646 | </constant> |
640 | 647 | <constant name="DEBUG_DRAW_SSAO" value="12" enum="DebugDraw"> |
641 | 648 | Draws the screen-space ambient occlusion texture instead of the scene so that you can clearly see how it is affecting objects. In order for this display mode to work, you must have [member Environment.ssao_enabled] set in your [WorldEnvironment]. |
| 649 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
642 | 650 | </constant> |
643 | 651 | <constant name="DEBUG_DRAW_SSIL" value="13" enum="DebugDraw"> |
644 | 652 | Draws the screen-space indirect lighting texture instead of the scene so that you can clearly see how it is affecting objects. In order for this display mode to work, you must have [member Environment.ssil_enabled] set in your [WorldEnvironment]. |
| 653 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
645 | 654 | </constant> |
646 | 655 | <constant name="DEBUG_DRAW_PSSM_SPLITS" value="14" enum="DebugDraw"> |
647 | | - Colors each PSSM split for the [DirectionalLight3D]s in the scene a different color so you can see where the splits are. In order, they will be colored red, green, blue, and yellow. |
| 656 | + Colors each PSSM split for the [DirectionalLight3D]s in the scene a different color so you can see where the splits are. In order (from closest to furthest from the camera), they are colored red, green, blue, and yellow. |
| 657 | + [b]Note:[/b] When using this debug draw mode, custom shaders are ignored since all materials in the scene temporarily use a debug material. This means the result from custom shader functions (such as vertex displacement) won't be visible anymore when using this debug draw mode. |
| 658 | + [b]Note:[/b] Only supported when using the Forward+ or Mobile rendering methods. |
648 | 659 | </constant> |
649 | 660 | <constant name="DEBUG_DRAW_DECAL_ATLAS" value="15" enum="DebugDraw"> |
650 | 661 | Draws the decal atlas used by [Decal]s and light projector textures in the upper left quadrant of the [Viewport]. |
| 662 | + [b]Note:[/b] Only supported when using the Forward+ or Mobile rendering methods. |
651 | 663 | </constant> |
652 | 664 | <constant name="DEBUG_DRAW_SDFGI" value="16" enum="DebugDraw"> |
653 | 665 | Draws the cascades used to render signed distance field global illumination (SDFGI). |
654 | | - Does nothing if the current environment's [member Environment.sdfgi_enabled] is [code]false[/code] or SDFGI is not supported on the platform. |
| 666 | + Does nothing if the current environment's [member Environment.sdfgi_enabled] is [code]false[/code]. |
| 667 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
655 | 668 | </constant> |
656 | 669 | <constant name="DEBUG_DRAW_SDFGI_PROBES" value="17" enum="DebugDraw"> |
657 | 670 | Draws the probes used for signed distance field global illumination (SDFGI). |
658 | | - Does nothing if the current environment's [member Environment.sdfgi_enabled] is [code]false[/code] or SDFGI is not supported on the platform. |
| 671 | + Does nothing if the current environment's [member Environment.sdfgi_enabled] is [code]false[/code]. |
| 672 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
659 | 673 | </constant> |
660 | 674 | <constant name="DEBUG_DRAW_GI_BUFFER" value="18" enum="DebugDraw"> |
661 | | - Draws the buffer used for global illumination (GI). |
| 675 | + Draws the buffer used for global illumination from [VoxelGI] or SDFGI. Requires [VoxelGI] (at least one visible baked VoxelGI node) or SDFGI ([member Environment.sdfgi_enabled]) to be enabled to have a visible effect. |
| 676 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
662 | 677 | </constant> |
663 | 678 | <constant name="DEBUG_DRAW_DISABLE_LOD" value="19" enum="DebugDraw"> |
664 | | - Draws all of the objects at their highest polycount, without low level of detail (LOD). |
| 679 | + Draws all of the objects at their highest polycount regardless of their distance from the camera. No low level of detail (LOD) is applied. |
665 | 680 | </constant> |
666 | 681 | <constant name="DEBUG_DRAW_CLUSTER_OMNI_LIGHTS" value="20" enum="DebugDraw"> |
667 | 682 | Draws the cluster used by [OmniLight3D] nodes to optimize light rendering. |
| 683 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
668 | 684 | </constant> |
669 | 685 | <constant name="DEBUG_DRAW_CLUSTER_SPOT_LIGHTS" value="21" enum="DebugDraw"> |
670 | 686 | Draws the cluster used by [SpotLight3D] nodes to optimize light rendering. |
| 687 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
671 | 688 | </constant> |
672 | 689 | <constant name="DEBUG_DRAW_CLUSTER_DECALS" value="22" enum="DebugDraw"> |
673 | 690 | Draws the cluster used by [Decal] nodes to optimize decal rendering. |
| 691 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
674 | 692 | </constant> |
675 | 693 | <constant name="DEBUG_DRAW_CLUSTER_REFLECTION_PROBES" value="23" enum="DebugDraw"> |
676 | 694 | Draws the cluster used by [ReflectionProbe] nodes to optimize decal rendering. |
| 695 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
677 | 696 | </constant> |
678 | 697 | <constant name="DEBUG_DRAW_OCCLUDERS" value="24" enum="DebugDraw"> |
679 | 698 | Draws the buffer used for occlusion culling. |
| 699 | + [b]Note:[/b] Only supported when using the Forward+ or Mobile rendering methods. |
680 | 700 | </constant> |
681 | 701 | <constant name="DEBUG_DRAW_MOTION_VECTORS" value="25" enum="DebugDraw"> |
682 | 702 | Draws vector lines over the viewport to indicate the movement of pixels between frames. |
| 703 | + [b]Note:[/b] Only supported when using the Forward+ rendering method. |
683 | 704 | </constant> |
684 | 705 | <constant name="DEBUG_DRAW_INTERNAL_BUFFER" value="26" enum="DebugDraw"> |
685 | | - Draws the internal resolution buffer of the scene before post-processing is applied. |
| 706 | + Draws the internal resolution buffer of the scene in linear colorspace before tonemapping or post-processing is applied. |
| 707 | + [b]Note:[/b] Only supported when using the Forward+ or Mobile rendering methods. |
686 | 708 | </constant> |
687 | 709 | <constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST" value="0" enum="DefaultCanvasItemTextureFilter"> |
688 | 710 | The texture filter reads from the nearest pixel only. This makes the texture look pixelated from up close, and grainy from a distance (due to mipmaps not being sampled). |
|
0 commit comments