Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
c5c62b30
Commit
c5c62b30
authored
15 years ago
by
Tofu Linden
Browse files
Options
Downloads
Patches
Plain Diff
debug ssreflection blur direction. minor.
parent
e889511a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
+2
-1
2 additions, 1 deletion
...ew/app_settings/shaders/class1/deferred/softenLightF.glsl
with
2 additions
and
1 deletion
indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
+
2
−
1
View file @
c5c62b30
...
@@ -290,7 +290,7 @@ void main()
...
@@ -290,7 +290,7 @@ void main()
//
//
depth
-=
0
.
5
;
// unbias depth
depth
-=
0
.
5
;
// unbias depth
// first figure out where we'll make our 2D guess from
// first figure out where we'll make our 2D guess from
vec2
ref2d
=
tc
.
xy
+
(
0
.
25
*
screen_res
.
y
)
*
(
refnorm
.
xy
)
*
abs
(
refnorm
.
z
)
/
depth
;
vec2
ref2d
=
(
0
.
25
*
screen_res
.
y
)
*
(
refnorm
.
xy
)
*
abs
(
refnorm
.
z
)
/
depth
;
// Offset the guess source a little according to a trivial
// Offset the guess source a little according to a trivial
// checkerboard dither function and spec.a.
// checkerboard dither function and spec.a.
// This is meant to be similar to sampling a blurred version
// This is meant to be similar to sampling a blurred version
...
@@ -299,6 +299,7 @@ void main()
...
@@ -299,6 +299,7 @@ void main()
// with low shinyness, and also to disguise our lameness.
// with low shinyness, and also to disguise our lameness.
float
checkerboard
=
floor
(
mod
(
tc
.
x
+
tc
.
y
,
2
.
0
));
// 0.0, 1.0
float
checkerboard
=
floor
(
mod
(
tc
.
x
+
tc
.
y
,
2
.
0
));
// 0.0, 1.0
ref2d
+=
normalize
(
ref2d
)
*
14
.
0
*
(
1
.
0
-
spec
.
a
)
*
(
checkerboard
-
0
.
5
);
ref2d
+=
normalize
(
ref2d
)
*
14
.
0
*
(
1
.
0
-
spec
.
a
)
*
(
checkerboard
-
0
.
5
);
ref2d
+=
tc
.
xy
;
// use as offset from destination
// get attributes from the 2D guess point
// get attributes from the 2D guess point
float
refdepth
=
texture2DRect
(
depthMap
,
ref2d
).
a
;
float
refdepth
=
texture2DRect
(
depthMap
,
ref2d
).
a
;
vec3
refpos
=
getPosition_d
(
ref2d
,
refdepth
).
xyz
;
vec3
refpos
=
getPosition_d
(
ref2d
,
refdepth
).
xyz
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment