scrawl
5cdee454ef
Fix degree/radians mixup ( Fixes #3213 )
9 years ago
scrawl
90a99991d1
Use empty() instead of !size()
9 years ago
scrawl
8bd16e4d5a
Don't compute the world matrix multiple times
9 years ago
scrawl
055d35a2b0
Revert "Warn about particle emitters that have multiple parent node paths"
...
Not working correctly because osg won't ignore camera nodes.
This reverts commit 1667c807be
.
9 years ago
scrawl
a6621626aa
Don't use multiple parent node paths in CSVRender::Object
9 years ago
scrawl
1667c807be
Warn about particle emitters that have multiple parent node paths
9 years ago
scrawl
c5d3e6c993
Disable preloading of levelled lists
9 years ago
Marc Zinnschlag
f9f91d5386
Merge remote-tracking branch 'origin/master'
9 years ago
scrawl
cee608e31b
Make it work with appveyor's outdated OSG build
9 years ago
scrawl
900b522d13
Rename viewPos to viewDirection
9 years ago
scrawl
8e826eefe6
Add missing initialization
9 years ago
scrawl
09684adeff
Update settings documentation
9 years ago
scrawl
e25e0a0600
ShaderVisitor: assume the first texture unit is the diffuseMap
9 years ago
scrawl
e7682e04ae
Cleanup
9 years ago
scrawl
cdefee3e64
Add call to MultiObjectCache::releaseGLObjects
9 years ago
scrawl
4ca6e91292
Fix in-code default settings so that we don't attempt to use shaders in OpenCS
9 years ago
scrawl
8f81df2bd3
Cleanup
9 years ago
scrawl
0db7163363
Add specular mapping for terrain
9 years ago
scrawl
171e293641
ShaderManager: insert #line directives when including files
9 years ago
scrawl
f01e8a6950
Add specular mapping for objects
9 years ago
scrawl
5cf2441b10
ShaderVisitor: support automatic recognition of normal maps based on file pattern
...
Introduce new settings 'auto use object normal maps', 'auto use terrain normal maps', 'normal map pattern'
9 years ago
scrawl
6a0ac824bd
Fix terrain error in OpenCS
9 years ago
scrawl
7071d286e8
Fix inverted check for 16-bit indices
9 years ago
scrawl
4e5462bc19
Don't attempt to create a collision shape for an empty TriShape
9 years ago
scrawl
e2dc46c92e
Update settings
9 years ago
scrawl
ca0e1fe0e0
Set the osg::Material on the terrain root node
9 years ago
scrawl
6000e48bba
Add terrain shaders and normal map support
...
Textures with _n filename suffix are automatically recognized as terrain normal maps.
9 years ago
scrawl
17c4dfdb62
Use the lowest unused texture unit for the enchanted item glow texture
9 years ago
scrawl
5e12a1b4ef
Add enchanted item glow to the shader
9 years ago
scrawl
268594dcf1
Recreate shader in NpcAnimation::setAlpha
9 years ago
scrawl
1232607385
Remove pointless widget names in settings layout file
9 years ago
scrawl
a73512afb7
Add shader settings to settings.cfg
9 years ago
scrawl
3969675afa
Remove unused settings
9 years ago
scrawl
e5a37a7023
Add normal map code
9 years ago
scrawl
18e80d5627
Add per-pixel lighting code
9 years ago
scrawl
1223bca3d4
Move doLighting to separate file
9 years ago
scrawl
21c4dffed2
Add #include support in shaders
9 years ago
scrawl
22cc5c0965
Cache the Program
9 years ago
scrawl
456816f707
Use diffuse.a / vertex.a, use material emission
9 years ago
scrawl
5fd84074c5
Reimplement detailMap, darkMap and emissiveMap
9 years ago
scrawl
e845c576d4
Use the texture matrix
9 years ago
scrawl
3e854a84a2
Slightly more efficient applying of light state
9 years ago
scrawl
3859c58a8a
Assign gl_ClipVertex in the vertex shader to make clip planes work
9 years ago
scrawl
553408949a
Fix character preview
9 years ago
scrawl
bd279c63f7
Fix fog on water
9 years ago
scrawl
f93b7ec943
Fix light state issue
...
GLSL does not respect gl_Disable(GL_LIGHTX), so we have to set unused lights to zero.
Sadly, this change makes the applying of the modelView matrix less efficient. So far I couldn't find a better solution, osg's state tracker keeps getting in the way. :(
9 years ago
scrawl
9376811213
Vertex lighting shader
9 years ago
scrawl
044e0a829a
Add fog
9 years ago
scrawl
41e1fd407d
Disable shaders for the sky
9 years ago
scrawl
a9ad1b09e2
Introduce ShaderManager & ShaderVisitor
...
Actual shaders still to be written.
9 years ago