TighMacFanatic
2565caf62a
Merge branch 'master' of https://github.com/siana/SingularityViewer
2011-12-03 11:52:29 -05:00
Siana Gearz
697dd7e929
Preparing to add mesh upload.
2011-12-03 03:43:23 +01:00
TighMacFanatic
f5a08b1c12
Merge branch 'master' of https://github.com/siana/SingularityViewer
2011-12-01 12:13:56 -05:00
Siana Gearz
cd67046b33
Silly way to clear stringstream on GCC
2011-12-01 17:41:50 +01:00
Shyotl
0b5a2cd6a3
Un-break for compilers that don't yet support stringstream copying ala C++0x's MoveConstructible
2011-12-01 02:21:23 -06:00
Shyotl
8e7733b2ce
Lazy shader update. attribute -> ATTRIBUTE, varying -> VARYING. Moved some shader preprocessor stuff from llviewershadermgr.cpp to llshadermgr.cpp to match LL (although it looks more messy)
2011-11-24 01:03:03 -06:00
Shyotl
08d2c17c65
Alphamask detection tweakage.
2011-11-24 00:31:45 -06:00
Shyotl
9f9daba33d
Missed some glRotatef -> gGL.rotatef conversions.
2011-11-23 23:39:42 -06:00
Shyotl
5d8d402403
Fix shader error dumping. (the error file was not being written to.) Also catch exceptions if shader log dir is inaccessable or otherwise unable to be cleared.
2011-11-23 21:29:42 -06:00
Shyotl
e46c906a8b
Invalid texure indexes now display as pink to better assist debugging.
2011-11-21 15:56:24 -06:00
Shyotl
83e8a9076b
Several gl calls now wrapped via LLRender (gGL) as prep for future changes:
...
glMatrixMode -> gGL.matrixMode
..GL_MODELVIEW -> LLRender::MM_MODELVIEW
..GL_POJECTION -> LLRender::MM_PROJECTION
..GL_TEXTURE -> LLRender::MM_TEXTURE
glMultMatrix -> gGL.multMatrix
glLoadMatrixf -> gGL.loadMatrix
glPushMatrix -> gGL.pushMatrix
glPopMatrix -> gGL.popMatrix
glLoadIdentity -> gGL.loadIdentity
glRotatef -> gGL.rotatef
glTransformf -> gGL.transformf
glOrtho -> gGL.ortho
glColor3f -> gGL.diffuseColor3f
glColor3fv -> gGL.diffuseColor3fv
glColor4f -> gGL.diffuseColor4f
glColor4fv -> gGL.diffuseColor4fv
glColor4ubv -> gGL.diffuseColor4ubv
glLightModelfv(GL_LIGHT_MODEL_AMBIENT -> gGL.
2011-11-21 15:55:44 -06:00
Shyotl
70909f86c8
Changed some GL matricies to single precision.
2011-11-19 19:05:19 -06:00
Shyotl
1fd908b2c4
Removed maximum_alpha uniform (as it's always 1.0 anyhow)
2011-11-19 15:13:16 -06:00
Shyotl
ee5a9c97be
Removing some shader warnings under gl 3.x context.
2011-11-07 16:43:30 -06:00
Shyotl
3891928092
vary_texture_index only needed in shaders when batching.
2011-10-31 20:44:33 -05:00
Shyotl
6964cec6f1
Merge branch 'master' of git://github.com/siana/SingularityViewer.git into future
2011-10-31 20:41:36 -05:00
Siana Gearz
cc45a24aff
Darwin doesn't use extension function pointer mechanism
2011-10-28 02:05:09 +02:00
Shyotl
b3423de80a
Shaders dumped to logs/shader_dump directory if 'ShyotlDumpRawShaders' is true, or a shader throws an error of some sort.
2011-10-22 01:55:08 -05:00
Shyotl
73f2543a6f
Use LLGLShader::sIndexTextureChannels instead of mNumTextureImageUnits directly.. also check that channel value isn't invalid. Also make super-sure shaders are disabled on pre opengl 2.0 hardware.
2011-10-20 13:37:09 -05:00
Shyotl
5d6aadb268
Prevent estimated vram value from being clobbered if glGetIntegerv memory query returns something too small.
2011-10-19 09:53:44 -05:00
Shyotl
4368c57243
Disabled reserved attrib having reserved locations in shaders. Conflicted with attrib location assumptions elsewhere.
2011-10-19 09:43:28 -05:00
Shyotl
4446b0fbad
Give each reserved attribute a consistent index across all shaders.
2011-10-17 19:19:36 -05:00
Shyotl
58ea5f88dc
Spew llinfos for opengl procs that aren't found.
2011-10-17 19:06:22 -05:00
Shyotl
8ce30e9ff7
Fixed a crash for hardware lacking ARB_shader_objects extension support.
2011-10-17 19:05:37 -05:00
Shyotl
d1b19aa389
Automatically disable new texture batching when using legacy renderpath.
2011-10-17 12:19:43 -05:00
Shyotl
5e829b7a3a
LLRender's vertexbuffer created via init now, instead of ctor. Allows deallocation/reallocation.
2011-10-08 02:58:23 -05:00
Shyotl
7f934f34f1
Minor renderer updates.
2011-09-23 00:55:24 -05:00
Shyotl
3b435fe056
Skip checkClientArrays if not using fixed-function
2011-09-09 14:39:44 -05:00
Shyotl
aaa6417fb7
Tweak related to cubemaps. Missed this earlier.
2011-08-29 03:22:42 -05:00
Shyotl
7e9f8c7bf8
Several LLStat variables migrated into the LLViewerStats class.
2011-08-28 00:56:57 -05:00
Shyotl
174c1800cc
llgl/llglext updated. TODO: repackage glext from ll's viewer-development branch so this will compile. (I manually extracted glext-68-windows-20110406.tar.bz2 in my build environment just for now.)
2011-08-27 04:49:51 -05:00
Shyotl
ecce8ad23a
Instancetracker update. LLInstanceTrackerScopedGuard was deprecated, now removed.
2011-08-18 00:23:59 -05:00
Shyotl
20ef149dcb
Added test setting 'ShyotlUseLegacyTextureBatching' to disable new texture indexing. The new indexing method requires heavy branching in shaders, which some hardware may not perfom well with.
2011-08-16 02:37:18 -05:00
Shyotl
f551294e66
Alphamasking migrated to shaders instead of using fixed-function. Very early code. Hasn't even made it into viewer-development yet.
2011-08-12 19:20:11 -05:00
Shyotl
c9860f7b66
Massive deferred update...
...
Plus renamed setupViewport to setup[2|3]DViewport.
Migrated mWindowRect to mWindowRectRaw, mVirtualWindowRect to mWindowRectScaled.
Slowly updating getwindow/getworldview calls to new v2 variants as I run across them.
Cleaned up ascent-related code in llmanip.cpp.
Impostor update tweaks.
Edgepatch water occlusion changes. (no patch flickering on edges of screen while moving camera)
2011-08-11 03:16:17 -05:00
Shyotl
ca328aec72
Replaced some opengl fixed functions with shaders. Temporary ShyotlUseLegacyRenderPath setting to debug if this change actually improves framerate at all (setting not tied to callbacks. Have to toggle shaders to have stuff pick up the setting change)
2011-08-10 03:53:49 -05:00
Shyotl
9bda97786f
Batch indexing/no-fixed-function WIP.
2011-08-09 01:11:05 -05:00
Shyotl
550fa0a160
Merge branch 'future' of https://github.com/AlericInglewood/SingularityViewer.git into V2Mesh
...
Conflicts:
indra/newview/llspatialpartition.cpp
2011-08-05 19:40:35 -05:00
Shyotl
7bcd259821
Added ShyotlRenderVBOStrideMode to toggle between strided and unstrided VBOs.
2011-08-05 19:24:17 -05:00
Shyotl
b75a28ec15
Cleanup. Applied http://hg.secondlife.com/mesh-development/changeset/3031f266784a
2011-08-05 01:18:27 -05:00
Siana Gearz
aa469d860f
Merge branch 'V2Mesh' of https://github.com/Shyotl/SingularityViewer into future
2011-08-01 19:56:33 +02:00
Shyotl
e21c9637ae
Added some glFlushes to lessen framestalls
2011-07-31 19:01:59 -05:00
Shyotl
b258b71e07
Flipped the MESH_ENABLED switch. Added missing components and updated stuff to be closer to mesh-development head.
2011-07-30 20:30:07 -05:00
Shyotl
48ef9904c1
A pass at cleaning up LLVertexBuffer a bit. Also removing extra unbinds that caused synchronization issues with mapped vbos.
2011-07-21 01:48:46 -05:00
Shyotl
cc19a4c2da
Aligned strided vertexbuffers.
2011-07-20 23:54:16 -05:00
Siana Gearz
f30c284063
Merge branch 'V2Mesh' of https://github.com/Shyotl/SingularityViewer into future
...
Conflicts:
indra/llvfs/lldiriterator.cpp
indra/newview/app_settings/settings.xml
indra/newview/llviewerregion.cpp
2011-07-21 00:20:06 +02:00
Shyotl
9e061d5e35
Apparently MacGL crashes on for loops of variable length. Also, cleaned up a few minor things.
2011-07-18 03:30:58 -05:00
Shyotl
66336e8151
Now letting LLRenderTarget delete bound textures immediately instead of having them hang around until next frame.
2011-07-17 19:48:37 -05:00
Siana Gearz
144d96f78c
Fixfudgery
2011-07-13 05:42:52 +02:00
Shyotl
43fd687b7c
Fixed nullptr call on shutdown.
2011-06-13 23:20:45 -05:00