
Strv m/41 II

SAV m/43

Strv m/42

BBV m/42
Moderators: MR.D, Moderators
Code: Select all
gl.Texture(0,"$units1") --this works for 3do
gl.Texture(0,"%" .. -drawDefID .. ":0") --this works for s3o. note NEGATIVE!
Code: Select all
function widget:DrawWorld()
...
gl.Texture (0, featureTexture (drawDefID))
...
gl.FeatureShape(drawDefID,1)
..
end
function featureTexture (featureDefID)
local modelname = FeatureDefs[featureDefID].modelname
if (string.sub (modelname, -3) =="s3o") then --last 3 letters: either "s3o" or "3do"
return "%" .. -featureDefID .. ":0"
else
return "$units1"
end
end
It's semi-tintable already (highlights are based on map ground specular lighting color), and it scrolls with wind (looks extra cool with windmills in games that use windmills).get it to be tintable and move slowly
Its great.. though clearly created under the Influence of PA_Narcotics :)scifi wrote:Yeah it looks interesting, besides im interested to see how much fps does that shader consume.
I guess i havent posted random 3d models in some time, heres one more.
hahahaah yeah narcotics have a strong effect.PicassoCT wrote:Its great.. though clearly created under the Influence of PA_Narcotics :)scifi wrote:Yeah it looks interesting, besides im interested to see how much fps does that shader consume.
I guess i havent posted random 3d models in some time, heres one more.
The shadder of anarchid should not eat frames? Shadders are massive parallel calced on the gfx card, every frame, thus frames should be the same?
Can't you just use a MAX operator? Just have it return the result of mapClouds or 0.1 (or whatever is the lowest 'good' value) ??Anarchid wrote:Namely, for coordinates, the X of which is an integer multiple of noiseScale, the function mapClouds returns values too close to zero for comfort (that is, for lighting to not fuckup the scene). And i'm having issues figuring this out. >.<
Might have to just use (expensive) fully procedural noise
That's been fixedCan't you just use a MAX operator? Just have it return the result of mapClouds or 0.1 (or whatever is the lowest 'good' value) ??