60 Commits

Author SHA1 Message Date
rdb
48808fe269 Add get_supports_hlsl check, fix shader generator for DirectX 9 2015-11-26 01:05:26 +01:00
rdb
acc2a310d0 Change debug category for shader generator to pgraphnodes 2015-07-28 21:43:19 +02:00
rdb
ef9908c277 More robust Cg support on non-NVIDIA card + automatically enable hardware skinning in Shader Generator 2015-07-07 02:51:48 +02:00
rdb
5d364d6128 Merge branch 'release/1.9.x' 2015-06-15 00:20:17 +02:00
rdb
6d0e4c2662 Correct scaling and normalizations of binormals and tangents in generated shaders 2015-06-15 00:19:52 +02:00
rdb
82e098e578 Move auto-rescale-normal handling out of GSG, support normalizing normals in shader generator 2015-06-13 18:20:18 +02:00
rdb
32fb6814e7 Merge branch 'release/1.9.x' 2015-05-14 17:18:20 +02:00
rdb
586c067d69 Fix shader generator memory leaks 2015-05-14 17:17:38 +02:00
rdb
adb02a8f45 Compile out things irrelevant for target build, like ShaderGenerator when !HAVE_CG 2015-04-06 13:24:45 +02:00
rdb
cbd70ad8af Move all Python bindings out of core DLLs into the .pyd files. 2015-02-10 14:30:51 +01:00
rdb
13fb8079ec Better shader caching, GLSL "#pragma include" support, better error reporting 2015-02-01 17:52:52 +01:00
rdb
7ba0469148 Shader generation should be done in cull, not in draw 2015-01-23 15:03:50 +01:00
rdb
a65b477734 Commit patches by cfsworks:
cxx: Fix missing includes masked by composite builds.
misc: Fix typos in comments.
config: Fix missing config forward-declarations.
direct: Adjust Python imports to panda3d.* instead of pandac.*.
display: Split graphicsWindow out into an extension.
framework: Use if/elif/elif/endif instead of ifdef/elif/elif/endif.
ode: Remove erroneous INLINE declarations.
interval: Fix missing import.
2014-10-19 22:41:47 +00:00
rdb
bce1f2dd5a Commit patch by Technologicat (closes LP #1214782) 2014-09-26 15:17:14 +00:00
rdb
89b824597c fix LP bug 1219422: fix ShaderGenerator errors when LightRampAttrib is in use but no diffuse is present 2014-09-16 13:25:18 +00:00
rdb
67a289fe4a Shader generator should use float3 for normals, not float4 2014-07-18 14:34:24 +00:00
rdb
33f4aa520d Normal maps should affect aux normal even without lighting 2014-03-04 08:29:32 +00:00
rdb
2ae458c2df Fix a bug with tangents and binormals 2014-02-20 12:37:08 +00:00
rdb
4da840805f Add support for k_time / osg_FrameTime inputs, and change the Shader Generator not to require a separate texcoord set for every texture in an effort to cut down on register overuse. 2014-02-10 11:32:06 +00:00
rdb
849dc05a60 Fix blunder 2014-01-13 22:06:47 +00:00
rdb
56577ec08a Don't rely on color fregs, they have unintended side-effects. Also, don't use up unnecessary registers when texgen is enabled. 2014-01-13 21:31:42 +00:00
rdb
b781547956 a tiny optimisation to use less registers 2014-01-11 15:06:22 +00:00
rdb
d489f68115 Add support for 2D texture arrays to ShaderGenerator and BufferViewer (actual render-to-texture-array functionality to come) 2013-08-12 09:18:24 +00:00
rdb
9901dee2c2 support ADD_SIGNED combine mode in shader generator 2013-07-29 09:12:03 +00:00
rdb
6fde10f9d1 write render state info to generated shader as comment. also fix a switch with missing breaks 2013-02-12 15:28:17 +00:00
rdb
f9b4dad6f9 Eye normals weren't being normalised when lighting was disabled 2013-02-12 14:30:38 +00:00
rdb
252b7bc656 fix type-oh 2012-03-12 18:57:46 +00:00
rdb
5e7fb20065 fix issue introduced by CMU students (bless them) 2012-03-12 09:12:31 +00:00
rdb
949395a4cc Add normal_gloss texture mode (requested by wezu) 2012-02-13 08:35:52 +00:00
rdb
44db7716df use fregs on shadow coordinates, maybe this'll fix some of the shadow-related issues 2012-01-15 21:27:03 +00:00
David Rose
501470169f stdfloat_double 2011-10-10 05:25:10 +00:00
rdb
58124af9f5 add fog support to shader generator 2011-10-08 13:27:40 +00:00
David Rose
cd79af53fe dx9 shader support from zhao 2011-09-28 18:42:58 +00:00
David Rose
0cf03bc158 untabify 2011-06-29 22:09:10 +00:00
David Rose
87ebb4f32c fix GeomVertexRewriter::set_row() problem with empty data; add GeomVertexReader/Writer::set_row_unsafe(); fix some compiler warnings 2011-06-17 18:57:04 +00:00
Mike Christel
671276fa6d Fixed bug with textures in synthesize_shader (case TextureStage::M_modulate): separate textures formatted as alpha were wiping the color info off the resulting rgb 2010-04-16 18:50:32 +00:00
Mike Christel
c308b57137 Overload added to set_shader_auto to allow any of normal, glow, gloss, ramp, shadow to be turned on or off 2010-04-16 14:06:26 +00:00
rdb
51378e31a0 Improve parallax mapping support 2009-12-30 15:09:29 +00:00
rdb
bdbe391be3 Double the amount of supported semantics 2009-10-11 19:48:44 +00:00
rdb
4aef327d79 Fix crash in shader generator when mixing texgen stages and non-texgen stages 2009-09-05 05:40:40 +00:00
rdb
d2a4c55dc7 Fix a couple of bugs in the SG with combine modes 2009-07-15 15:05:52 +00:00
rdb
87e5347a1e Fix some bugs in the shader generator regarding combine modes. 2009-07-13 11:37:11 +00:00
rdb
cd80487c05 Performance improvement of shadow code, fixed the self-shadowing artifacts, removed push_bias. For infinitely-thin objects, a DepthOffsetAttrib can be applied if necessary. 2009-07-04 09:19:40 +00:00
rdb
afa7801696 Fix cgc warnings/errors 2009-06-13 09:56:00 +00:00
rdb
0e24827b9d Support for 1D, 3D textures and cubemaps 2009-06-12 15:17:17 +00:00
rdb
b83e30b645 Add support for more TexGen modes 2009-06-12 13:47:49 +00:00
rdb
4bd2bdda96 Move TexGen and TexMatrix to the fragment shader to improve accuracy on lowpoly models 2009-06-12 10:39:41 +00:00
rdb
d1f9183119 Support for TexMatrix and projected textures 2009-06-12 10:13:50 +00:00
rdb
eb5b308edf Added support for parallax mapping 2009-06-11 11:04:47 +00:00
rdb
557abfae5e Fixes for this circular dependency mess 2009-06-02 15:21:36 +00:00