diff --git a/Docs/README.scenery b/Docs/README.scenery index 4ab59949a..2904f6670 100644 --- a/Docs/README.scenery +++ b/Docs/README.scenery @@ -400,6 +400,25 @@ See README.materials for details on configuring the random building parameters. The referenced (in the example buildings.txt) contains lines of the form +X Y Z R B W D H P S O F T + +Where: +- X,Y,Z are the cartesian coordinates of the center of the front face. +X is East, +Y is North +- R is the building rotation in degrees centered on the middle of the front face. +- B is the building type [0, 1, 2] for SMALL, MEDIUM, LARGE +- W is the building width in meters +- D is the building depth in meters +- H is the building height in meters, excluding any pitched roof +- P is the pitch height in meters. 0 for a flat roof +- S is the roof shape (currently unused - all roofs are flat or gabled depending on pitch height) : + 0=flat 1=skillion 2=gabled 3=half-hipped 4=hipped 5=pyramidal 6=gambled + 7=mansard 8=dome 9=onion 10=round 11=saltbox +- O is the roof ridge orientation (currently unused, all roofs are assumed orthogonal) : + 0 = parallel to the front face of the building + 1 = orthogonal to the front face of the building +- F is the number of floors (integer) +- T is the texture index to use (integer). Buildings with the same T value will have the same texture assigned. There are 6 small, 6 medium and 4 large textures. + where : diff --git a/Docs/buildings.png b/Docs/buildings.png index 1e6537e89..cfabeb7bb 100644 Binary files a/Docs/buildings.png and b/Docs/buildings.png differ diff --git a/Effects/building.eff b/Effects/building.eff index a58a0b0a7..bbd9cc38e 100644 --- a/Effects/building.eff +++ b/Effects/building.eff @@ -7,7 +7,7 @@ 2d Textures/buildings.png linear-mipmap-linear - clamp + repeat clamp normalized @@ -19,7 +19,7 @@ Textures/buildings-normalmap_orig.png 2d linear-mipmap-linear - clamp + repeat clamp normalized @@ -63,6 +63,12 @@ Aircraft/Generic/Effects/CubeMaps/buildings/D.png + + + 2d + clamp + clamp + 0.0 0 @@ -169,27 +175,27 @@ 0 0 0 0 --> - - 4 - - texture[3]/image - - - texture[3]/type - - - texture[3]/filter - - - texture[3]/wrap-s - - - texture[3]/wrap-t - - - texture[3]/internal-format - - + + 4 + + texture[3]/image + + + texture[3]/type + + + texture[3]/filter + + + texture[3]/wrap-s + + + texture[3]/wrap-t + + + texture[3]/internal-format + + Shaders/building-model-ALS-ultra.vert + + instancePosition + 10 + + + instanceScaleRotate + 11 + + + rotPitchTex0x + 12 + + + tex0yTex1xTex1y + 13 + @@ -249,6 +271,17 @@ texture[0]/internal-format + + 1 + texture[6]/image + texture[6]/type + texture[6]/filter + texture[6]/wrap-s + texture[6]/wrap-t + + texture[6]/internal-format + + @@ -256,12 +289,33 @@ Shaders/trivial.frag + + instancePosition + 10 + + + instanceScaleRotate + 11 + + + rotPitchTex0x + 12 + + + tex0yTex1xTex1y + 13 + texture sampler-2d 0 + + dataBuffer + sampler-1d + 1 + 0 0 0 0 @@ -293,12 +347,39 @@ texture[0]/internal-format + + 1 + texture[6]/image + texture[6]/type + texture[6]/filter + texture[6]/wrap-s + texture[6]/wrap-t + + texture[6]/internal-format + + Shaders/building-ALS.vert Shaders/terrain-ALS-base.frag Shaders/hazes.frag Shaders/filters-ALS.frag Shaders/noise.frag + + instancePosition + 10 + + + instanceScaleRotate + 11 + + + rotPitchTex0x + 12 + + + tex0yTex1xTex1y + 13 + visibility @@ -360,6 +441,11 @@ sampler-2d 0 + + dataBuffer + sampler-1d + 1 + colorMode int @@ -387,7 +473,7 @@ 4 - + texture[3]/image @@ -408,10 +494,26 @@ Shaders/building-ubershader.vert + + instancePosition + 10 + + + instanceScaleRotate + 11 + + + rotPitchTex0x + 12 + + + tex0yTex1xTex1y + 13 + - + @@ -427,7 +529,7 @@ 4 - + texture[3]/image @@ -448,25 +550,25 @@ Shaders/building-ubershader.vert + + instancePosition + 10 + + + instanceScaleRotate + 11 + + + rotPitchTex0x + 12 + + + tex0yTex1xTex1y + 13 + - - - - - - Shaders/building-deferred-gbuffer.vert - - - - - - - - Shaders/building-default.vert - - - + @@ -543,6 +645,17 @@ --> + + 1 + texture[6]/image + texture[6]/type + texture[6]/filter + texture[6]/wrap-s + texture[6]/wrap-t + + texture[6]/internal-format + + vertex-program-two-side @@ -551,6 +664,22 @@ Shaders/include_fog.frag Shaders/default.frag + + instancePosition + 10 + + + instanceScaleRotate + 11 + + + rotPitchTex0x + 12 + + + tex0yTex1xTex1y + 13 +