Re: [Flightgear-devel] Lightmap question

2013-05-01 Thread Vivian Meazza
Tom, -Original Message- From: Thomas Albrecht [mailto:ra...@web.de] Sent: 30 April 2013 23:48 To: flightgear-devel@lists.sourceforge.net Subject: [Flightgear-devel] Lightmap question Dear shader experts, Can I have a single-channel lightmap, and still use a vec3d in my

Re: [Flightgear-devel] Lightmap question

2013-05-01 Thread Vivian Meazza
Tom -Original Message- From: Vivian Meazza [mailto:vivian.mea...@lineone.net] Sent: 01 May 2013 08:47 To: 'FlightGear developers discussions' Subject: Re: [Flightgear-devel] Lightmap question Tom, -Original Message- From: Thomas Albrecht [mailto:ra...@web.de] Sent

Re: [Flightgear-devel] Lightmap question

2013-05-01 Thread Thomas Albrecht
You can do what you want, but not inline in the model.xml file - the type=vec3d is not recognized anywhere outside an effect and is causing the error. Do your effect config in a local .eff file, then inherit from that in your model. Thanks Vivian, I wasn't aware of that. Works great now.

[Flightgear-devel] Lightmap question

2013-04-30 Thread Thomas Albrecht
Dear shader experts, Can I have a single-channel lightmap, and still use a vec3d in my model.xml to end up with green or red (or whatever) light rendered? As in (roughly) on_screen_color[0] = lightmap-grey-value * vec3d[0] * texture[0] on_screen_color[1] = lightmap-grey-value * vec3d[1] *