Material tester demo
BIN
3d/material_testers/GodotBall.blend
Normal file
BIN
3d/material_testers/GodotBall.blend1
Normal file
344
3d/material_testers/GodotBall.dae
Normal file
1049
3d/material_testers/GodotBall.dae.import
Normal file
BIN
3d/material_testers/aluminium_albedo.png
Normal file
|
After Width: | Height: | Size: 252 KiB |
24
3d/material_testers/aluminium_albedo.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/aluminium_albedo.png-8465e536e9f8dfa1137257f84f2b50f4.s3tc.stex"
|
||||
path.etc2="res://.import/aluminium_albedo.png-8465e536e9f8dfa1137257f84f2b50f4.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/aluminium_flow.png
Normal file
|
After Width: | Height: | Size: 774 KiB |
24
3d/material_testers/aluminium_flow.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/aluminium_flow.png-a53868607847a6b19b83857fdf27ef17.s3tc.stex"
|
||||
path.etc2="res://.import/aluminium_flow.png-a53868607847a6b19b83857fdf27ef17.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/aluminium_normal.png
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
24
3d/material_testers/aluminium_normal.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/aluminium_normal.png-8309c0de24d2619ec41813ca11bcfa8e.s3tc.stex"
|
||||
path.etc2="res://.import/aluminium_normal.png-8309c0de24d2619ec41813ca11bcfa8e.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/experiment.hdr
Normal file
23
3d/material_testers/experiment.hdr.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/experiment.hdr-9c87b674db59b87ae6c71d507945718a.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
23
3d/material_testers/fair.hdr.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/fair.hdr-e04fc1e795da836c93a53f35d6037c4a.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
BIN
3d/material_testers/godot_ball.mesh
Normal file
9681
3d/material_testers/lobby.hdr
Normal file
23
3d/material_testers/lobby.hdr.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/lobby.hdr-19eeb77528a0be82c97b317aa865de05.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
BIN
3d/material_testers/marble_albedo.png
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
24
3d/material_testers/marble_albedo.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/marble_albedo.png-330de4517eeff8f0c0a9a19d8035b409.s3tc.stex"
|
||||
path.etc2="res://.import/marble_albedo.png-330de4517eeff8f0c0a9a19d8035b409.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/night.hdr
Normal file
23
3d/material_testers/night.hdr.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/night.hdr-332f5acd8584ef56a1a6547f38a69ed0.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
BIN
3d/material_testers/park.hdr
Normal file
23
3d/material_testers/park.hdr.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/park.hdr-5bf7587b9d6b1215ad5e0650ef813289.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
226
3d/material_testers/pbr_bed.dae
Normal file
1049
3d/material_testers/pbr_bed.dae.import
Normal file
8
3d/material_testers/project.godot
Normal file
@@ -0,0 +1,8 @@
|
||||
config_version=3
|
||||
[memory]
|
||||
|
||||
multithread/thread_rid_pool_prealloc=60
|
||||
|
||||
[rendering]
|
||||
|
||||
quality/msaa=2
|
||||
BIN
3d/material_testers/rock_albedo.jpg
Normal file
|
After Width: | Height: | Size: 306 KiB |
24
3d/material_testers/rock_albedo.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/rock_albedo.jpg-22e9a32a083cfcfc2f4fff95187a039c.s3tc.stex"
|
||||
path.etc2="res://.import/rock_albedo.jpg-22e9a32a083cfcfc2f4fff95187a039c.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/rock_ao.jpg
Normal file
|
After Width: | Height: | Size: 173 KiB |
24
3d/material_testers/rock_ao.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/rock_ao.jpg-6d1ea370b7a8387d8adc07e245cfd5aa.s3tc.stex"
|
||||
path.etc2="res://.import/rock_ao.jpg-6d1ea370b7a8387d8adc07e245cfd5aa.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/rock_depth.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
24
3d/material_testers/rock_depth.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/rock_depth.jpg-b10a74f6c8987f92932ee2f3637dce4e.s3tc.stex"
|
||||
path.etc2="res://.import/rock_depth.jpg-b10a74f6c8987f92932ee2f3637dce4e.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/rock_metal.jpg
Normal file
|
After Width: | Height: | Size: 491 KiB |
24
3d/material_testers/rock_metal.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/rock_metal.jpg-5af21640ab618fdf5d03595166e2bdc4.s3tc.stex"
|
||||
path.etc2="res://.import/rock_metal.jpg-5af21640ab618fdf5d03595166e2bdc4.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/rock_rough.jpg
Normal file
|
After Width: | Height: | Size: 238 KiB |
24
3d/material_testers/rock_rough.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/rock_rough.jpg-4dc5db109393ce22de7ba90bc6555451.s3tc.stex"
|
||||
path.etc2="res://.import/rock_rough.jpg-4dc5db109393ce22de7ba90bc6555451.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/sand_albedo.jpg
Normal file
|
After Width: | Height: | Size: 605 KiB |
24
3d/material_testers/sand_albedo.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/sand_albedo.jpg-2e96d28fbd6ccbeedf02aa2d2eaeb3c7.s3tc.stex"
|
||||
path.etc2="res://.import/sand_albedo.jpg-2e96d28fbd6ccbeedf02aa2d2eaeb3c7.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/sand_metal.jpg
Normal file
|
After Width: | Height: | Size: 544 KiB |
24
3d/material_testers/sand_metal.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/sand_metal.jpg-d878e561d91ca01991af7855a718f32f.s3tc.stex"
|
||||
path.etc2="res://.import/sand_metal.jpg-d878e561d91ca01991af7855a718f32f.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/sand_normal.jpg
Normal file
|
After Width: | Height: | Size: 846 KiB |
24
3d/material_testers/sand_normal.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/sand_normal.jpg-301374b7038f7e6f751f04aa77042dad.s3tc.stex"
|
||||
path.etc2="res://.import/sand_normal.jpg-301374b7038f7e6f751f04aa77042dad.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/sand_rough.jpg
Normal file
|
After Width: | Height: | Size: 550 KiB |
24
3d/material_testers/sand_rough.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/sand_rough.jpg-c65a80e64c890f26dbcd777854758cb8.s3tc.stex"
|
||||
path.etc2="res://.import/sand_rough.jpg-c65a80e64c890f26dbcd777854758cb8.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/sand_shine.jpg
Normal file
|
After Width: | Height: | Size: 443 KiB |
23
3d/material_testers/sand_shine.jpg.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/sand_shine.jpg-1052c3ef1aff28138658d353fe42fa08.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
10542
3d/material_testers/schelde.hdr
Normal file
23
3d/material_testers/schelde.hdr.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/schelde.hdr-70b608d92e301bcc05f9a0a8b999832a.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
BIN
3d/material_testers/test_bed.scn
Normal file
85
3d/material_testers/tester.gd
Normal file
@@ -0,0 +1,85 @@
|
||||
extends Spatial
|
||||
|
||||
# class member variables go here, for example:
|
||||
# var a = 2
|
||||
# var b = "textvar"
|
||||
|
||||
const INTERP_SPEED = 2
|
||||
var tester_index = 0
|
||||
const ROT_SPEED = 0.15
|
||||
var rot_x = 0
|
||||
var rot_y = 0
|
||||
var zoom = 0
|
||||
const ZOOM_SPEED = 0.1
|
||||
const ZOOM_MAX = 2.5
|
||||
|
||||
var hdrs=[
|
||||
{ path="res://schelde.hdr", name="Riverside"},
|
||||
{ path="res://lobby.hdr", name="Lobby"},
|
||||
{ path="res://park.hdr", name="Park"},
|
||||
{ path="res://night.hdr", name="Night"},
|
||||
{ path="res://experiment.hdr", name="Experiment"},
|
||||
]
|
||||
|
||||
func _ready():
|
||||
for h in hdrs:
|
||||
get_node("ui/bg").add_item(h.name)
|
||||
|
||||
func _unhandled_input(ev):
|
||||
|
||||
if (ev is InputEventMouseButton and ev.button_index == BUTTON_WHEEL_UP):
|
||||
if (zoom<ZOOM_MAX):
|
||||
zoom+=ZOOM_SPEED
|
||||
get_node("camera/base/rotation/camera").translation.z = -zoom
|
||||
|
||||
if (ev is InputEventMouseButton and ev.button_index == BUTTON_WHEEL_DOWN):
|
||||
if (zoom>0):
|
||||
zoom-=ZOOM_SPEED
|
||||
get_node("camera/base/rotation/camera").translation.z = -zoom
|
||||
|
||||
if (ev is InputEventMouseMotion and ev.button_mask & BUTTON_MASK_LEFT):
|
||||
rot_y += ev.relative.x * ROT_SPEED
|
||||
rot_x += ev.relative.y * ROT_SPEED
|
||||
rot_y = clamp(rot_y,-180,180)
|
||||
rot_x = clamp(rot_x,0,150)
|
||||
var t = Transform()
|
||||
t = t.rotated(Vector3(0,0,1),rot_x * PI / 180.0)
|
||||
t = t.rotated(Vector3(0,1,0),-rot_y * PI / 180.0)
|
||||
|
||||
|
||||
get_node("camera/base").transform.basis = t.basis
|
||||
|
||||
|
||||
func _process(delta):
|
||||
var xform = get_node("testers").get_child(tester_index).get_node("MeshInstance").global_transform
|
||||
var p = xform.origin
|
||||
var r = Quat(xform.basis)
|
||||
var from_xform = get_node("camera").transform
|
||||
var from_p = from_xform.origin
|
||||
var from_r = Quat(from_xform.basis)
|
||||
|
||||
p = from_p.linear_interpolate(p,INTERP_SPEED*delta)
|
||||
r = from_r.slerp(r,INTERP_SPEED*delta)
|
||||
|
||||
var m = Transform(r)
|
||||
m.origin=p
|
||||
|
||||
get_node("camera").transform=m
|
||||
get_node("ui/label").text = get_node("testers").get_child(tester_index).get_name()
|
||||
|
||||
|
||||
|
||||
func _on_prev_pressed():
|
||||
if (tester_index > 0):
|
||||
tester_index-=1
|
||||
|
||||
pass # replace with function body
|
||||
|
||||
|
||||
func _on_next_pressed():
|
||||
if (tester_index < get_node("testers").get_child_count() -1):
|
||||
tester_index+=1
|
||||
|
||||
|
||||
func _on_bg_item_selected( ID ):
|
||||
get_node("environment").environment.background_sky.panorama = load(hdrs[ID].path)
|
||||
BIN
3d/material_testers/tester.scn
Normal file
BIN
3d/material_testers/texture_bricks.jpg
Normal file
|
After Width: | Height: | Size: 458 KiB |
24
3d/material_testers/texture_bricks.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_bricks.jpg-d3b343aa38aee9a6b0951e00d08ac2ac.s3tc.stex"
|
||||
path.etc2="res://.import/texture_bricks.jpg-d3b343aa38aee9a6b0951e00d08ac2ac.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_bricks_depth.jpg
Normal file
|
After Width: | Height: | Size: 237 KiB |
24
3d/material_testers/texture_bricks_depth.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_bricks_depth.jpg-b725221b03775ad5fda51e36c8539693.s3tc.stex"
|
||||
path.etc2="res://.import/texture_bricks_depth.jpg-b725221b03775ad5fda51e36c8539693.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_bricks_metal.jpg
Normal file
|
After Width: | Height: | Size: 115 KiB |
24
3d/material_testers/texture_bricks_metal.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_bricks_metal.jpg-432f72dd37b9668c0061f39964123e2e.s3tc.stex"
|
||||
path.etc2="res://.import/texture_bricks_metal.jpg-432f72dd37b9668c0061f39964123e2e.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_bricks_normal.jpg
Normal file
|
After Width: | Height: | Size: 500 KiB |
24
3d/material_testers/texture_bricks_normal.jpg.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_bricks_normal.jpg-f511d813bdfac68deb908142f6206640.s3tc.stex"
|
||||
path.etc2="res://.import/texture_bricks_normal.jpg-f511d813bdfac68deb908142f6206640.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_cheese_albedo.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
24
3d/material_testers/texture_cheese_albedo.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_cheese_albedo.png-ced5468dd652fe22fb58e4fd3e3a4bbd.s3tc.stex"
|
||||
path.etc2="res://.import/texture_cheese_albedo.png-ced5468dd652fe22fb58e4fd3e3a4bbd.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_cheese_ao.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
24
3d/material_testers/texture_cheese_ao.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_cheese_ao.png-79c642c52e0a990ef398c8818cd56ced.s3tc.stex"
|
||||
path.etc2="res://.import/texture_cheese_ao.png-79c642c52e0a990ef398c8818cd56ced.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_cheese_depth.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
24
3d/material_testers/texture_cheese_depth.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_cheese_depth.png-6461e37dafc766bdb9c6ee35bcfc082e.s3tc.stex"
|
||||
path.etc2="res://.import/texture_cheese_depth.png-6461e37dafc766bdb9c6ee35bcfc082e.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_cheese_normal.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
24
3d/material_testers/texture_cheese_normal.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_cheese_normal.png-0fa23a508b8380b2968078be79949326.s3tc.stex"
|
||||
path.etc2="res://.import/texture_cheese_normal.png-0fa23a508b8380b2968078be79949326.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_rock_albedo.png
Normal file
|
After Width: | Height: | Size: 650 KiB |
24
3d/material_testers/texture_rock_albedo.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_rock_albedo.png-a68a57186abfc0ec7c0856dd4d19e57a.s3tc.stex"
|
||||
path.etc2="res://.import/texture_rock_albedo.png-a68a57186abfc0ec7c0856dd4d19e57a.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_rock_ao.png
Normal file
|
After Width: | Height: | Size: 377 KiB |
24
3d/material_testers/texture_rock_ao.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_rock_ao.png-876ff29d15db920077c3a4eedf0391ba.s3tc.stex"
|
||||
path.etc2="res://.import/texture_rock_ao.png-876ff29d15db920077c3a4eedf0391ba.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_rock_depth.png
Normal file
|
After Width: | Height: | Size: 227 KiB |
24
3d/material_testers/texture_rock_depth.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_rock_depth.png-263bbd49c5f4a80a3ab535786ba3d2d0.s3tc.stex"
|
||||
path.etc2="res://.import/texture_rock_depth.png-263bbd49c5f4a80a3ab535786ba3d2d0.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_rock_metal.png
Normal file
|
After Width: | Height: | Size: 546 KiB |
24
3d/material_testers/texture_rock_metal.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_rock_metal.png-0684b921574f18caeb657e95d1acb52f.s3tc.stex"
|
||||
path.etc2="res://.import/texture_rock_metal.png-0684b921574f18caeb657e95d1acb52f.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_rock_normal.png
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
24
3d/material_testers/texture_rock_normal.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_rock_normal.png-3a7708ff84016bcf75dae97ed3c1dd99.s3tc.stex"
|
||||
path.etc2="res://.import/texture_rock_normal.png-3a7708ff84016bcf75dae97ed3c1dd99.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/texture_wood.png
Normal file
|
After Width: | Height: | Size: 516 KiB |
24
3d/material_testers/texture_wood.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/texture_wood.png-9b04e5a28e94d609932fce33329c7bba.s3tc.stex"
|
||||
path.etc2="res://.import/texture_wood.png-9b04e5a28e94d609932fce33329c7bba.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/wool_albedo.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
24
3d/material_testers/wool_albedo.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/wool_albedo.png-13b4480f7715040f550618b0867a4240.s3tc.stex"
|
||||
path.etc2="res://.import/wool_albedo.png-13b4480f7715040f550618b0867a4240.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=1
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/wool_depth.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
24
3d/material_testers/wool_depth.png.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path.s3tc="res://.import/wool_depth.png-b54a8703f10017b4c0db1af616cbeada.s3tc.stex"
|
||||
path.etc2="res://.import/wool_depth.png-b54a8703f10017b4c0db1af616cbeada.etc2.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
BIN
3d/material_testers/wool_normal.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
23
3d/material_testers/wool_normal.png.import
Normal file
@@ -0,0 +1,23 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/wool_normal.png-60ff7f57bf1350fad781bc9803fe0cab.stex"
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/normal_map=1
|
||||
flags/repeat=true
|
||||
flags/filter=true
|
||||
flags/mipmaps=true
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||