Basic stairs and player setup
This commit is contained in:
commit
dd7c490140
36 files changed
+1681
No files matched your search
@@ -0,0 +1 @@
|
||||
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" viewBox="0 0 67 67" xmlns="http://www.w3.org/2000/svg"><g fill="none" stroke="#fc7f7f" stroke-width="8.33"><path d="m4.167 33.333h37.5l-16.667-16.666m16.667 16.666-16.667 16.667"/><path d="m41.667 58.333h16.666v-50h-16.666" stroke-linecap="round"/></g></svg>
|
||||
|
After Width: | Height: | Size: 327 B |
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ct62bsuel5hyc"
|
||||
path="res://.godot/imported/portal3d-icon.svg-a34538e0e6bdf86bd50ffe0190100a72.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/portals/materials/portal3d-icon.svg"
|
||||
dest_files=["res://.godot/imported/portal3d-icon.svg-a34538e0e6bdf86bd50ffe0190100a72.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
@@ -0,0 +1,16 @@
|
||||
shader_type spatial;
|
||||
render_mode unshaded;
|
||||
|
||||
uniform sampler2D albedo: hint_default_black, source_color;
|
||||
|
||||
void fragment() {
|
||||
// The portal color is simply the screen-space color of the exit camera render target.
|
||||
// This is because the exit camera views the exit portal from the perspective of the player watching
|
||||
// the entrance portal, meaning the exit portal will occupy the same screen-space as the entrance portal.
|
||||
vec3 portal_color = texture(albedo, SCREEN_UV).rgb;
|
||||
|
||||
ALBEDO = portal_color;
|
||||
|
||||
// FOR DEBUG - make portals slightly red
|
||||
// ALBEDO = mix(portal_color, vec3(1, 0, 0), 0.1);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://bhdb2skdxehes
|
||||
@@ -0,0 +1,11 @@
|
||||
#define PORTALCLIP_UNIFORMS \
|
||||
instance uniform bool portal_clip_active = false;\
|
||||
instance uniform vec3 portal_clip_point = vec3(0, 0, 0);\
|
||||
instance uniform vec3 portal_clip_normal = vec3(0, 1, 0);\
|
||||
varying vec3 portal_clip_vertex_position;\
|
||||
|
||||
#define PORTALCLIP_VERTEX \
|
||||
portal_clip_vertex_position = (MODEL_MATRIX * vec4(VERTEX, 1.0)).xyz;\
|
||||
|
||||
#define PORTALCLIP_FRAGMENT \
|
||||
if (portal_clip_active && dot(portal_clip_vertex_position - portal_clip_point, portal_clip_normal) < 0.0) ALPHA = 0.0;
|
||||
@@ -0,0 +1 @@
|
||||
uid://cpxsita6rqndc
|
||||
Reference in new issue
Block a user