mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 05:24:46 +08:00
added grass painting
This commit is contained in:
@@ -195,6 +195,14 @@ namespace CodeWalker.Rendering
|
||||
}
|
||||
}
|
||||
|
||||
public void Invalidate(YmapGrassInstanceBatch batch)
|
||||
{
|
||||
lock (updateSyncRoot)
|
||||
{
|
||||
instbatches.Invalidate(batch);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -380,6 +380,11 @@ namespace CodeWalker.Rendering
|
||||
renderableCache.Invalidate(path);
|
||||
}
|
||||
|
||||
public void Invalidate(YmapGrassInstanceBatch batch)
|
||||
{
|
||||
renderableCache.Invalidate(batch);
|
||||
}
|
||||
|
||||
|
||||
public void UpdateSelectionDrawFlags(DrawableModel model, DrawableGeometry geom, bool rem)
|
||||
{
|
||||
|
||||
@@ -695,6 +695,10 @@ namespace CodeWalker.Rendering
|
||||
{
|
||||
var gb = batch.Key;
|
||||
|
||||
// sanity check
|
||||
if (batch.GrassInstanceBuffer == null)
|
||||
return;
|
||||
|
||||
VSEntityVars.Vars.CamRel = new Vector4(gb.CamRel, 0.0f);
|
||||
VSEntityVars.Vars.Orientation = Quaternion.Identity;
|
||||
VSEntityVars.Vars.Scale = Vector3.One;
|
||||
|
||||
Reference in New Issue
Block a user