goto-bus-stop / aoe-map-renderer Goto Github PK
View Code? Open in Web Editor NEWRender Age of Empires 2 scenario maps using WebGL. This is incomplete and won't be worked on in the near future. feel free to take the code and make it work (or not).
Render Age of Empires 2 scenario maps using WebGL. This is incomplete and won't be worked on in the near future. feel free to take the code and make it work (or not).
openage uses this:
// alpha masking shader
//
// applies an alpha mask texture to a base texture,
// then draws the masked texture.
// the base and mask texture, base is the plain terrain tile
uniform sampler2D base_texture;
uniform sampler2D mask_texture;
// disable blending and show the mask instead
uniform bool show_mask;
// get those interpolated texture position from vertexshader
varying vec2 base_tex_position;
varying vec2 mask_tex_position;
void main() {
// get the texel from the uniform texture.
vec4 base_pixel = texture2D(base_texture, base_tex_position);
vec4 mask_pixel = texture2D(mask_texture, mask_tex_position);
float factor = 1.0 - mask_pixel.x;
vec4 blended_pixel = vec4(base_pixel.r, base_pixel.g, base_pixel.b, base_pixel.a - factor);
if (show_mask) {
gl_FragColor = mask_pixel;
} else {
gl_FragColor = blended_pixel;
}
}
Probably just take the slp and render it always facing the camera's way
Toggle between isometric and first-person camera perhaps? Should get Isometric working first.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.