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
4e894bfa
Commit
4e894bfa
authored
13 years ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
SH-2600 Fix for busted texture animation on bump mapped objects.
parent
1762cc49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/app_settings/shaders/class1/objects/bumpV.glsl
+1
-2
1 addition, 2 deletions
indra/newview/app_settings/shaders/class1/objects/bumpV.glsl
indra/newview/lldrawpoolbump.cpp
+2
-3
2 additions, 3 deletions
indra/newview/lldrawpoolbump.cpp
with
3 additions
and
5 deletions
indra/newview/app_settings/shaders/class1/objects/bumpV.glsl
+
1
−
2
View file @
4e894bfa
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
*/
*/
uniform
mat4
texture_matrix0
;
uniform
mat4
texture_matrix0
;
uniform
mat4
texture_matrix1
;
uniform
mat4
modelview_projection_matrix
;
uniform
mat4
modelview_projection_matrix
;
ATTRIBUTE
vec3
position
;
ATTRIBUTE
vec3
position
;
...
@@ -39,5 +38,5 @@ void main()
...
@@ -39,5 +38,5 @@ void main()
//transform vertex
//transform vertex
gl_Position
=
modelview_projection_matrix
*
vec4
(
position
.
xyz
,
1
.
0
);
gl_Position
=
modelview_projection_matrix
*
vec4
(
position
.
xyz
,
1
.
0
);
vary_texcoord0
=
(
texture_matrix0
*
vec4
(
texcoord0
,
0
,
1
)).
xy
;
vary_texcoord0
=
(
texture_matrix0
*
vec4
(
texcoord0
,
0
,
1
)).
xy
;
vary_texcoord1
=
(
texture_matrix
1
*
vec4
(
texcoord1
,
0
,
1
)).
xy
;
vary_texcoord1
=
(
texture_matrix
0
*
vec4
(
texcoord1
,
0
,
1
)).
xy
;
}
}
This diff is collapsed.
Click to expand it.
indra/newview/lldrawpoolbump.cpp
+
2
−
3
View file @
4e894bfa
...
@@ -1453,11 +1453,10 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL
...
@@ -1453,11 +1453,10 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL
}
}
else
else
{
{
gGL
.
getTexUnit
(
1
)
->
activate
();
gGL
.
getTexUnit
(
0
)
->
activate
();
gGL
.
matrixMode
(
LLRender
::
MM_TEXTURE
);
gGL
.
matrixMode
(
LLRender
::
MM_TEXTURE
);
gGL
.
loadMatrix
((
GLfloat
*
)
params
.
mTextureMatrix
->
mMatrix
);
gGL
.
loadMatrix
((
GLfloat
*
)
params
.
mTextureMatrix
->
mMatrix
);
gPipeline
.
mTextureMatrixOps
++
;
gPipeline
.
mTextureMatrixOps
++
;
gGL
.
getTexUnit
(
0
)
->
activate
();
}
}
gGL
.
loadMatrix
((
GLfloat
*
)
params
.
mTextureMatrix
->
mMatrix
);
gGL
.
loadMatrix
((
GLfloat
*
)
params
.
mTextureMatrix
->
mMatrix
);
...
@@ -1470,7 +1469,7 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL
...
@@ -1470,7 +1469,7 @@ void LLDrawPoolBump::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL
{
{
if
(
params
.
mTexture
.
notNull
())
if
(
params
.
mTexture
.
notNull
())
{
{
gGL
.
getTexUnit
(
diffuse_channel
)
->
bind
(
params
.
mTexture
)
;
gGL
.
getTexUnit
(
diffuse_channel
)
->
bind
(
params
.
mTexture
);
params
.
mTexture
->
addTextureStats
(
params
.
mVSize
);
params
.
mTexture
->
addTextureStats
(
params
.
mVSize
);
}
}
else
else
...
...
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