Fixed typo: 'texure' to 'texture'
This commit is contained in:
parent
4f39ce32b9
commit
392a94686c
@ -41,7 +41,7 @@
|
|||||||
<argument index="3" name="userdata" type="Variant">
|
<argument index="3" name="userdata" type="Variant">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Queue a resource being edited for preview (using an instance). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texure (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.
|
Queue a resource being edited for preview (using an instance). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="queue_resource_preview">
|
<method name="queue_resource_preview">
|
||||||
@ -56,7 +56,7 @@
|
|||||||
<argument index="3" name="userdata" type="Variant">
|
<argument index="3" name="userdata" type="Variant">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Queue a resource file for preview (using a path). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texure (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.
|
Queue a resource file for preview (using a path). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="remove_preview_generator">
|
<method name="remove_preview_generator">
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
<argument index="0" name="path" type="String">
|
<argument index="0" name="path" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Load an [ImageTexure].
|
Load an [ImageTexture].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_data">
|
<method name="set_data">
|
||||||
|
@ -589,7 +589,7 @@ vec3 textureDualParaboloid(sampler2DArray p_tex, vec3 p_vec,float p_roughness) {
|
|||||||
norm.xy=norm.xy * vec2(0.5,0.25) + vec2(0.5,0.25);
|
norm.xy=norm.xy * vec2(0.5,0.25) + vec2(0.5,0.25);
|
||||||
|
|
||||||
// we need to lie the derivatives (normg) and assume that DP side is always the same
|
// we need to lie the derivatives (normg) and assume that DP side is always the same
|
||||||
// to get proper texure filtering
|
// to get proper texture filtering
|
||||||
vec2 normg=norm.xy;
|
vec2 normg=norm.xy;
|
||||||
if (norm.z>0.0) {
|
if (norm.z>0.0) {
|
||||||
norm.y=0.5-norm.y+0.5;
|
norm.y=0.5-norm.y+0.5;
|
||||||
|
@ -94,7 +94,7 @@ String Performance::get_monitor_name(Monitor p_monitor) const {
|
|||||||
"raster/surface_changes",
|
"raster/surface_changes",
|
||||||
"raster/draw_calls",
|
"raster/draw_calls",
|
||||||
"video/video_mem",
|
"video/video_mem",
|
||||||
"video/texure_mem",
|
"video/texture_mem",
|
||||||
"video/vertex_mem",
|
"video/vertex_mem",
|
||||||
"video/video_mem_max",
|
"video/video_mem_max",
|
||||||
"physics_2d/active_objects",
|
"physics_2d/active_objects",
|
||||||
|
@ -38,7 +38,7 @@ class ImmediateGeometry : public GeometryInstance {
|
|||||||
GDCLASS(ImmediateGeometry, GeometryInstance);
|
GDCLASS(ImmediateGeometry, GeometryInstance);
|
||||||
|
|
||||||
RID im;
|
RID im;
|
||||||
//a list of texures drawn need to be kept, to avoid references
|
//a list of textures drawn need to be kept, to avoid references
|
||||||
// in VisualServer from becoming invalid if the texture is no longer used
|
// in VisualServer from becoming invalid if the texture is no longer used
|
||||||
List<Ref<Texture> > cached_textures;
|
List<Ref<Texture> > cached_textures;
|
||||||
bool empty;
|
bool empty;
|
||||||
|
@ -85,7 +85,7 @@ public:
|
|||||||
enum TextureFlags {
|
enum TextureFlags {
|
||||||
TEXTURE_FLAG_MIPMAPS = 1, /// Enable automatic mipmap generation - when available
|
TEXTURE_FLAG_MIPMAPS = 1, /// Enable automatic mipmap generation - when available
|
||||||
TEXTURE_FLAG_REPEAT = 2, /// Repeat texture (Tiling), otherwise Clamping
|
TEXTURE_FLAG_REPEAT = 2, /// Repeat texture (Tiling), otherwise Clamping
|
||||||
TEXTURE_FLAG_FILTER = 4, /// Create texure with linear (or available) filter
|
TEXTURE_FLAG_FILTER = 4, /// Create texture with linear (or available) filter
|
||||||
TEXTURE_FLAG_ANISOTROPIC_FILTER = 8,
|
TEXTURE_FLAG_ANISOTROPIC_FILTER = 8,
|
||||||
TEXTURE_FLAG_CONVERT_TO_LINEAR = 16,
|
TEXTURE_FLAG_CONVERT_TO_LINEAR = 16,
|
||||||
TEXTURE_FLAG_MIRRORED_REPEAT = 32, /// Repeat texture, with alternate sections mirrored
|
TEXTURE_FLAG_MIRRORED_REPEAT = 32, /// Repeat texture, with alternate sections mirrored
|
||||||
|
Loading…
Reference in New Issue
Block a user