Code Monkey home page Code Monkey logo

aoe-map-renderer's People

Contributors

goto-bus-stop avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

opencai

aoe-map-renderer's Issues

terrain blending

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;
	}
}

Trees

Probably just take the slp and render it always facing the camera's way

Movable Camera

Toggle between isometric and first-person camera perhaps? Should get Isometric working first.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.